[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Get environment variable by name.
Source position: dosh.inc line 125
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.
lazarus-ccr.sourceforge.net |