Difference between revisions of "ID()"

From Lianjapedia
Jump to: navigation, search
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Function to return the login name of the current user
+
Function to return the machine and OS account name
  
 
==Syntax==
 
==Syntax==
Line 9: Line 9:
  
 
==Description==
 
==Description==
The ID() function returns the login name of the current user.  The login name is assigned by the operating system.  This function is synonymous with the USER() function.
+
The ID() function returns the computer name, a space, a hash (#), a space and then the OS account name of the current [[USER()|user]].
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
? id()
 
? id()
william
+
My-PC # Winuser
 
</code>
 
</code>
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 06:49, 21 May 2014

Purpose

Function to return the machine and OS account name

Syntax

ID()

See Also

GETGID(), GETPID(), GETUID(), USER(), USERDOMAIN(), USERNAME(), USERROLES()

Description

The ID() function returns the computer name, a space, a hash (#), a space and then the OS account name of the current user.

Example

? id()
My-PC # Winuser