Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vUser := GetEnv("USERNAME")

43 views
Skip to first unread message

Otto Haldi

unread,
Nov 22, 2022, 3:07:35 AM11/22/22
to
I have to read the environment variable %username%.
I tried with the function GetEnv( <cEnvVar> ) , but it doesn't work.
What is the best function for this?

Enrico Maria Giordano

unread,
Nov 22, 2022, 3:19:48 AM11/22/22
to
This works fine here:

FUNCTION MAIN()

? GETENV( "USERNAME" )

INKEY( 0 )

RETURN NIL

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

0 new messages