GETENV()
Obtains system environmental settings.
- Syntax
- GETENV(<cEnviroment>, <cDefaultValue> ) --> <cReturn>
- Arguments
- <cEnviroment> Enviromental variable to obtain.
- <cDefaultValue> Optional value to return if <cEnvironment> is not found.
- Returns
- <cReturn> Value of the Environment Variable.
- Description
- This function yields a string that is the value of the environment variable , which is stored at the system level with the Set command. If no environment variable can be found, the value of the function will be if it is passed, else an empty string.
- Examples
- ? QOUT(GETENV('PATH'))
- ? QOUT(GETENV('CONFIG'))
- ? QOUT(GETENV('HARBOURCMD', '-n -l -es2'))
- Status
Ready
- Compliance
- This command is Ca-Clipper compliant. The parameter is a Harbour extension.
- Platforms
- All
- Files
- source/rtl/gete.c Library is rtl