Progress
Language Reference


USERID Function

Interfaces
OS
SpeedScript
All
All
Yes

Returns the user ID of the current user.

SYNTAX

USERID [ ( logical-dbname ) ] 

logical-dbname

The logical name of the database from which you want to retrieve the user ID. The logical database name must be a character string enclosed in quotes, or a character expression. If you do not specify this argument, the Compiler inserts the name of the database that is connected when the procedure is compiled. If you omit this argument and more than one database is connected, Progress returns a compiler error.

EXAMPLE

This one-line procedure displays the current user ID for the database with the DICTDB alias.

r-userid.p
DISPLAY USERID("DICTDB") LABEL "You are logged in as"
  WITH SIDE-LABELS. 

NOTES

SEE ALSO

CONNECT Statement, SETUSERID Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095