GetUserName Procedure

Returns the current user name.

Syntax

[ sUserName = ] GetUserName ( )

The GetUserName procedure syntax has the following parts:

 

Name

Type

Description

sUserName

BString

User name

Comments

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.

Example

Print "Current User Name Is :";GetUserName( )

See Also

GetUserLevel, AUsers.CurrentUser, Users Variable