Return the number of variables in the environment.
Source position: osutilsh.inc line 30
function GetEnvironmentVariableCount: Integer; |
GetEnvironmentVariableCount returns the number of variables in the environment. The number is 1 based, but the result may be zero if there are no environment variables.
If there is no environment, -1 may be returned.
|
Return an environment variable by index. |
|
|
Return the value of an environment variable. |
{$h+} program example92; { This program demonstrates the GetEnvironmentVariableCount function } uses sysutils; Var I : Integer; begin or:=1 to GetEnvironmentVariableCount do Writeln(i:3,' : ',GetEnvironmentString(i)); end.