On 2012-04-12, at 6:57 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

Yes you can have optional parameters...you'll have to check %parms() to
see if the parm was passed. Also all parameters after the first optional
parameter must also be optional/no pass.

And if you are on V7 or later you should use %ParmNum to check for optional parms rather than hard code against %Parms.

e.g. If %Parms >= %ParmNum(optional1); Rather than

If %Parms >= 2;


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].