Kbase P26012: How can the value of the USERNAME environment variable be retrieved?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  06/05/2010 |
|
Status: Verified
GOAL:
How can the value of the USERNAME environment variable be retrieved?
GOAL:
4GL code sample to get Windows USERNAME.
GOAL:
ABL code sample to get Windows USERNAME.
FACT(s) (Environment):
Windows
Progress/OpenEdge Product Family
OpenEdge Category: Language (4GL/ABL)
OpenEdge Category: Language (4GL/ABL)
FIX:
Use the following code to retrieve the value of the USERNAME environment variable from the operating system:
DEFINE VARIABLE cUserName AS CHARACTER NO-UNDO.
ASSIGN cUserName = OS-GETENV('USERNAME').