GetEnvironmentVariable¶
Return the value of an environment variable.
Declaration¶
Source position: osutilsh.inc line 27
function GetEnvironmentVariable(const EnvVar: AnsiString) : AnsiString
; overload; overload;
function GetEnvironmentVariable(const EnvVar: UnicodeString)
: UnicodeString; overload; overload;
Description¶
GetEnvironmentVariable returns the value of the EnvVar environment variable. If the specified variable does not exist or EnvVar is empty, an empty string is returned.
See also¶
| Name | Description |
|---|---|
| GetEnvironmentString | Return an environment variable by index. |
| GetEnvironmentVariableCount | Return the number of variables in the environment. |