Cicode Programming Reference > Cicode Function Categories > Security Functions Introduction > FullName

FullName

Gets the full name of the user who is currently logged on to the system. The user can be a Citect or a Windows user. For a Citect user the full name is the one defined in the users form. For a Windows user the full name is in the format of <DomainName>\<UserName>. When there is no one logged in or the logged in user is a "system user" this function returns an empty string.

Syntax

FullName()

If the user is logged on as a Domain user the name should be the Windows domain name and user account name in the format of <DomainName\UserName>.

If the user is logged on as a local user the name should be the local machine name and user account name in the format of <MachineName\UserName>.

Return Value

The user name (as a string).

Related Functions

Name, UserInfo

Example

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

See Also

Security Functions