Cicode Programming Reference > Cicode Function Categories > Security Functions > Name

Name

Gets the name of the operator who is currently logged on to the display system. The user can be a Citect or a windows user.If this function is called on a server, it returns the name of the local operator. If there is no one logged on, or the logged on user is a "system user" this function returns an empty string.

Syntax

Name([bIncludeDomain])

bIncludeDomain:

bIncludeDomain = 0: Return Windows user name only

bIncludeDomain = 1: (Default) Return Windows user name with domain name

Note: This parameter is ignored when a normal CitectSCADA account.

Return Value

The name of the user as a string. If the user is logged on as a Windows user the name will be the Windows user account name.

Related Functions

FullName, Login, LoginForm

Example

/* Display the user name of the current user at AN20. */
DspText(20,0,Name());

See Also

Security Functions

Published June 2018