Get the User's Logon Name
Q: How do you get the user's Logon name?
A1: Use the WinAPI function:
DECLARE INTEGER GetUserName IN WIN32API STRING @,INTEGER @
lcUser = SPACE(20)
=GetUserName(@lcUser, 20)
gcUser = ALLTRIM(UPPER(STRTRAN(lcUser, CHR(0), '')))
A2: Sys(0) Gives the Machine Name # User name
A3: ID() gives the same information