Difference between revisions of "ID()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(3 intermediate revisions by 2 users not shown)
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==
 
ID()
 
ID()
 
  
 
==See Also==
 
==See Also==
[[DISPLAY USERS]], [[GETGID()]], [[GETPID()]], [[GETUID()]], [[LIST USERS]], [[SET COMPATIBLE]], [[USER()]]
+
[[GETGID()]], [[GETPID()]], [[GETUID()]], [[USER()]], [[USERDOMAIN()]], [[USERNAME()]], [[USERROLES()]]
 
+
  
 
==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]].
 
+
If COMPATIBLE is set to VFP, the ID() function is compatible with Visual FoxPro and returns user and machine information in the following format:
+
 
+
<pre>
+
MACHINEID # userid
+
</pre>
+
 
+
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
?id()
+
? id()
william
+
My-PC # Winuser
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[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