• vUser := GetEnv("USERNAME")

    From Otto Haldi@21:1/5 to All on Tue Nov 22 00:07:33 2022
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Nov 22 09:19:47 2022
    Il 22/11/2022 09:07, Otto Haldi ha scritto:

    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?

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)