QPR Knowledge Base 2016.1

GetUserName

GetUserName

Previous topic Next topic No directory for this topic  

GetUserName

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

Revision history:

Introduced in QPR 7.3.2

Last changed in QPR 7.4.1

 

Returns the user/group name of the corresponding user/group ID provided as a parameter.

 

Synopsis:

 

PGApplication.GetUserName(UserId, out UserName)

 

Parameters:

 

UserId: Integer. ID of some user or group.

out UserName: String. Variant for the returned user/group name.

 

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.GetUserName(1234, UserLoginName)