Environment Variables
Russell Whitaker
russ at ashlandhome.net
Mon Apr 4 21:52:15 CEST 2005
On Mon, 4 Apr 2005, Andy Ball wrote:
>
> RE> It might be worth checking out the ParamStr function.
>
> Thanks. Hopefully the Web servers will be back up soon and
> I will be able to look this one up.
>
meanwhile:
ParamStr built-in
========
(Under construction.)
Synopsis
function ParamStr (ParmNumber: Integer): String;
Description
*Please note:* If you are using the Dos (DJGPP) or MS-Windows (mingw32)
version of GPC and are getting unexpected results from `ParamStr', please see
the section "Command-line Arguments Handling in DJGPP" of the DJGPP FAQ list.
Conforming to
`ParamStr' is a Borland Pascal extension.
Example
program ParamStrDemo;
var
i: Integer;
begin
WriteLn ('You have invoked this program with ',
ParamCount, ' arguments.');
WriteLn ('These are:');
for i := 1 to ParamCount do
WriteLn (ParamStr (i))
end.
See also
Hope this helps
Russ
p.s. does anyone know what the dot-quad number is for "www.gnu-pascal.de"?
perhaps the server is up but only the name is deleted from the dns
database.
More information about the Gpc
mailing list