Previous: GetDate procedure To the Table of Content Next: GetFAttr procedure

- 4.24.2.17 -
Standard Units
Dos Unit
Dos Unit Procedures and Functions

GetEnv function

Targets: MS-DOS, OS/2, Win32


Dos Unit

Returns the value of a specified environment variable.

Declaration:
function GetEnv(VarName: string): string;
Remarks:
VarName is the name of the variable to retrieve. If VarName does not exist as an environment variable then an empty string is returned.

GetEnv returns the string assigned to the environment variable.

Example:
  s := GetEnv('COMSPEC');  // Returns COMSPEC





Previous: GetDate procedure To the Table of Content Next: GetFAttr procedure
GetDate procedure Table of Content GetFAttr procedure

- 4.24.2.17 -