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) cheers James -- - -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. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal