Syntax:
Then: v = getenv("name")
Version Ref: 4.1
Description:
Returns value of environment variable "name", or variables stored in the filePro config file (fp/lib/config).
Examples:
Then: aa=getenv("LOGNAME")
Then: hm=getenv(aa)
The GETENV function returns the value of a variable stored in the fp\lib\config file or the system environment. However, when you start Inquire, Update, Add or Request Output, these values are copied to a temporary memory, where GETENV will look for them. Therefore, any changes made to these variables by other users while you are in Inquire, Update, Add will not be picked up by GETENV.
If you execute GETENV on the variables PFPROG, PFDIR or PFDATA, and the variable has not been given a value, GETENV will look for the value in the corresponding line in the fppath file.
IMPORTANT: An environment variable in the system environment will override the same variable in the configuration file.
GETENV now checks the fppath file for PFPROG, PFDATA, and PFDIR