next up previous contents index
Next: GetFAttr Up: Functions and Procedures Previous: GetDate

GetEnv

   

Declaration:

Function GetEnv (EnvVar: String) : String;

Description:

Getenv returns the value of the environment variable EnvVar. Under LINUX, case is important when looking for EnvVar.

When there is no environment variable EnvVar defined, an empty string is returned.

Errors:

None.

See also:

EnvCount, EnvStr

Example
Program Example14;
uses Dos;

{ Program to demonstrate the GetEnv function. }

begin
  WriteLn('Current PATH is ',GetEnv('PATH'));
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998