QPR Knowledge Base

GetUserName

Hide Navigation Pane

GetUserName

Previous topic Next topic No expanding text in this topic  

GetUserName

Previous topic Next topic JavaScript is required for expanding text Mail us feedback on this topic!  

Comments (...)

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)

Comments (...)