EnvStr function
Return environment variable by index.
Declaration
function EnvStr(Index: LongInt): shortstringDescription
EnvStr returns the
Index-th
Name=Value pair from the list
of environment variables.
The index of the first pair is zero.Errors
The length is limited to 255 characters.
See also
Example: ex13
Program Example13;
uses Dos;
{ Program to demonstrate the EnvCount and EnvStr function. }
var
i : Longint;
begin
WriteLn('Current Environment is:');
for i:=1 to EnvCount do
WriteLn(EnvStr(i));
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
