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.



root
Fri Sep 11 18:24:36 CEST 1998