Returns the current user name.
[ sUserName = ] GetUserName ( )
The GetUserName procedure syntax has the following parts:
Name |
Type |
Description |
sUserName |
BString |
User name |
The current user name is determined by ATEasy Login Dialog, ShowLoginDialog, Login or the ATEasy Command Line. If no user was logged in, the Windows login user name will be returned.
The current user is determined by ATEasy according to the user name and password entered in the Login Dialog.
Print "Current User Name Is :";GetUserName( )
GetUserLevel, AUsers.CurrentUser, Users Variable