Consider the following program:
{$mode objfpc}{$H+}
uses
SysUtils;
var
i: integer;
s: string;
begin
i := GetEnvironmentVariableCount;
writeln('VariableCount: ',i);
s := GetEnvironmentString(1);
writeln('Variable 1: ', s);
s := GetEnvironmentString(2);
writeln('Variable 2: ',
Here is a Code Snippet from an application I use to grab environment
stuff for CGI Programming:
Var T: integer; SA: Ansistring; eq: integer;
And the rCGIIN is a record of rtCGI. iEnvVarCount and the arNVPair
should
Make sense if you look at what I have here.
The iVal function is just a