| [Overview][Constants][Types][Procedures and functions][Variables][Index] | 
Get environment variable by name.
Source position: dosh.inc line 120
function GetEnv(  | 
envvar: string  | 
):string;  | 
Getenv returns the value of the environment variable EnvVar. When there is no environment variable EnvVar defined, an empty string is returned.
| Remark: | Under some operating systems (such as Unix), case is important when looking for EnvVar. | 
None.
  | 
Return the number of environment variables  | 
|
  | 
Return environment variable by index  | 
Program Example14; uses Dos; { Program to demonstrate the GetEnv function. } begin WriteLn('Current PATH is ',GetEnv('PATH')); end.