Just a quick question - how do I get access to command-line parameters from gpc? (I.e. the equivalent of main(argc,argv)) I looked through the info documentation and couldn't find anything.
Jo Dillon wrote:
Just a quick question - how do I get access to command-line parameters from gpc? (I.e. the equivalent of main(argc,argv)) I looked through the info documentation and couldn't find anything.
gpc-19980830 has the following built-in functions:
Function ParamCount: Integer;
Function ParamStr ( i: Integer ): String; {*}
{*} Returning a string of unspecified length requires compiler magic. ;-)
Hope this helps,
Peter