[fpc-pascal]Read from command line
jims_son at jedi.apana.org.au
Sun Sep 7 13:43:32 CEST 2003
> myprogram param1 param2
> made those two variables available to the program and you could do some
> action, just like passing variables to a function.
> How do you do that in FPC in Linux?
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
E-mail - donaldp at au.mensa.org
BIG DON's Home-page - http://jedi.apana.org.au/~jims_son
Pedder Passer Rating - http://jedi.apana.org.au/~jims_son/PPR
AusNFL mailing-list - http://jedi.apana.org.au/mailman/listinfo/ausnfl
"What I always wanted is to be accepted, not understood" - MAN RAY
More information about the fpc-pascal