Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Jason P Sage
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

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Vincent Snijders
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

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Michael Van Canneyt
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; >

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Marco van de Voort
> 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

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Vincent Snijders
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

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Michael Van Canneyt
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; >

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Vincent Snijders
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(

Re: [fpc-pascal] environmentstrings in windows

2006-12-14 Thread Michael Van Canneyt
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

[fpc-pascal] environmentstrings in windows

2006-12-14 Thread Vincent Snijders
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: ',