Please enable JavaScript to view this site.

QPR Knowledge Base 2023.1

  •      
  • Navigation: Developer's Guide > QPR API > The Object Model > QPR Modeling > PGApplication Commands

    GetUserId

    Scroll Prev Top Next More

    Revision history:

    Introduced in QPR 7.3.2

     

    Returns the user ID of the corresponding user (login) name provided as a parameter.

     

    Synopsis:

     

    PGApplication.GetUserId(LoginName, out UserId)

     

    Parameters:

     

    LoginName: String. Login name of some user.

    out UserId: Integer. Variant for the returned user ID.

     

    Required Rights:

     

    None.

     

    Return Values:

    Below are listed the return values that this function can return:

     

    RV_APPLICATION_QUIT_CALLED

    RV_NOT_CONNECTED_TO_SERVER

    RV_SUCCESS

    RV_USER_NOT_FOUND

     

    Example Procedure:

     

    iRet = PGApplication.GetUserId("jsmith", UserID)