QPR Knowledge Base 2017.1

GetUserId

GetUserId

Previous topic Next topic No directory for this topic  

GetUserId

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

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)