QPR Knowledge Base 2017.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.1

Last changed in QPR 7.4.1

 

Returns the user/group name of the user/group ID defined in the function call.

 

Synopsis:

 

SCApplication.GetUserName(UserId, out UserName);

 

Parameters:

 

UserId: ID of the user or group whose name is sought for. Integer.

UserName: Variant for containing the returned user or group name. String.

 

Required Rights:

 

None.

 

Return Values:

 

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_NOT_AUTHENTICATED

RV_SUCCESS

RV_USER_NOT_FOUND

 

Example Procedure:

 

iRet = SCApplication.GetUserName(1234, Username)