[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: ',

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