Clib Get Environment Variable Method
The Get Environment Variable method returns the value of an environment variable.
Format
Clib.getenv(varName)
The following table describes the arguments for the Get Environment Variable method.
Argument | Description |
---|---|
varName |
The name of an environment variable, enclosed in quotes. |
Example
The following example returns the value of the PATH environment variable:
TheApplication().RaiseErrorText("PATH= " + Clib.getenv("PATH"));