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 wrapp
Marco van de Voort schreef:
On Thu, 14 Dec 2006, Vincent Snijders wrote:
The first two envrionment string are special, in the sense that their name
start with a =.
but if ask for the value of the environment variable '=D:', it returns the
empty string.
I am wrestling a bit with how to interpre
On Thu, 14 Dec 2006, Vincent Snijders wrote:
> Michael Van Canneyt schreef:
> >
> > On Thu, 14 Dec 2006, Vincent Snijders wrote:
> >
> > > Consider the following program:
> > >
> > > {$mode objfpc}{$H+}
> > >
> > > uses
> > > SysUtils;
> > >
> > > var
> > > i: integer;
> > > s: string;
>
> On Thu, 14 Dec 2006, Vincent Snijders wrote:
> > The first two envrionment string are special, in the sense that their name
> > start with a =.
> >
> > but if ask for the value of the environment variable '=D:', it returns the
> > empty string.
> >
> > I am wrestling a bit with how to interpret
Michael Van Canneyt schreef:
On Thu, 14 Dec 2006, Vincent Snijders wrote:
Michael Van Canneyt schreef:
In windows it doesn't seem to be allowed either:
C:\lazarus>set =test=p
De syntaxis van de opdracht is onjuist.
On the command-line.
Have you tried in the 'My Computer' properties, 'System
On Thu, 14 Dec 2006, Vincent Snijders wrote:
> Michael Van Canneyt schreef:
> >
> > On Thu, 14 Dec 2006, Vincent Snijders wrote:
> >
> > > Consider the following program:
> > >
> > > {$mode objfpc}{$H+}
> > >
> > > uses
> > > SysUtils;
> > >
> > > var
> > > i: integer;
> > > s: string;
>
Michael Van Canneyt schreef:
On Thu, 14 Dec 2006, Vincent Snijders wrote:
Consider the following program:
{$mode objfpc}{$H+}
uses
SysUtils;
var
i: integer;
s: string;
begin
i := GetEnvironmentVariableCount;
writeln('VariableCount: ',i);
s := GetEnvironmentString(1);
writeln(
On Thu, 14 Dec 2006, Vincent Snijders wrote:
> Consider the following program:
>
> {$mode objfpc}{$H+}
>
> uses
> SysUtils;
>
> var
> i: integer;
> s: string;
>
> begin
> i := GetEnvironmentVariableCount;
> writeln('VariableCount: ',i);
> s := GetEnvironmentString(1);
> writeln
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: ',