You are probably running FoxWeb as a service. The GETENV function returns the content of environment variables. Each user session (and system service invocation) get its own environment. The values of many variables, such as the location of the Windows folder and the name of the system, will be the same from environment to environment, but other variables, such as locations of user-specific folders and the user name will vary, depending on the user.
FoxWeb Support Team
Sent by Carlos Fuertes on 04/26/2015 05:19:37 AM:
Is there a reason why I get different values when I use the function GETENV() in VFP9 than in a Foxweb script?
For instance, when I write at the VFP command window ?GETENV("USERNAME") I get the Value "Carlos" (The name of the User logged in Windows), but when I apply the function to a variable like this in a Foxweb Script: nombreusuario = GETENV("USERNAME") y get "CARLOS-VAIO2$" (this is the domain name + $)
I don't know if it shows only part of the information.
Thanks in advance