Sign in Join
FPDoc Onlineexperiment

GetEnvironmentVariable function

In unit sysutils

Return the value of an environment variable.

Declaration

pascal
function GetEnvironmentVariable(const EnvVar: AnsiString): AnsiString
 ; overload

Description

GetEnvironmentVariable returns the value of the EnvVar environment variable. If the specified variable does not exist or EnvVar is empty, an empty string is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.