Environ
Returns the value of a system environment variable
result = Environ( varname )
varname
Returns the text value of the environmental variable, or the empty string ("") if the variable does not exist.
Environ returns the text value of a system environment variable.
Syntax
Usage
result = Environ( varname )
Parameters
varname
The name of an environment variable.
Return Value
Returns the text value of the environmental variable, or the empty string ("") if the variable does not exist.
Description
Environ returns the text value of a system environment variable.
Example
'e.g. to show the system variable "path":
Print Environ("path")
Print Environ("path")
Differences from QB
- The Environ statement is now called SetEnviron.
See also