[fpc-pascal]Read from command line

James Mills prologic at daisy.ods.org
Sun Sep 7 16:24:20 CEST 2003

On Sun, Sep 07, 2003 at 09:43:32PM +1000, DONALD PEDDER wrote:
>    Don't know if it's different in Linux, but in the DOS version at least
> you can use paramstr(1), paramstr(2), etc.
> if (paramstr(1)='test') then writenln('you passed the parameter passing
> test')

It isn't any different on Linux:

paramCount   (returns the number of parameters passed to the program)
paramStr(i)  (returns the i'th parameter)


-Zero Defect Software Engineers Group - ZDSEG
-You need only two tools. WD-40 and duct tape.
-If it doesn't move and it should, use WD-40.
-If it moves and shouldn't, use the tape.

More information about the fpc-pascal mailing list