I am writing a program which I want to call with a parameter from the
command line. I've built a little test program and all works as expected.
However, if the user passes too many parameters on the command line, I get a
"Wrong number of parameters" error which they can then click "ignore" on. I
can't place an ON ERROR before the line because then PARAMETERS is no longer
the first statement in the program.
I'll immediately do a check on PARAMETERS() - if it is over 1 then show a
message and return, otherwise continue. It seems as if PARAMETERS() returns
the correct value even if the "PARAMETERS m.ppar1" doesn't have enough
variables.
Is there a cleaner way to handle this?
--
TIA
Andrew Howell