At 09:01 2016-11-23, Ted Roche tedroche@gmail.com wrote:
No, the short answer is you set up 152 parameters on the LPARAMETERS line and throw the error of your choice if you don't like PCOUNT().
Well, no, because if someone passes 153 or more parameters, VFP throws "Allowed DO nesting or expression evaluation limit reached."
It is turtles all the way down, and the last ones snap.
[snip]
Sincerely,
Gene Wirchenko
Gene, I'd still use the Parameter object as a preferable solution but if you have to have parameters then why not have ONE parameter, that being a string with "|" delimiters for each parameter. In this way you could also have named parameters so that order would become irrelevant i.e
|Width=100|Length=20|Name="My_Name"|
The only think to make sure of here is that there are no spaces in the parameter so I'd preprocess it and substitute "_" characters.
Dave
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko Sent: 23 November 2016 19:30 To: ProFox Email List profox@leafe.com Subject: Re: Dealing with Extraneous Parameters
At 09:01 2016-11-23, Ted Roche tedroche@gmail.com wrote:
No, the short answer is you set up 152 parameters on the LPARAMETERS line and throw the error of your choice if you don't like PCOUNT().
Well, no, because if someone passes 153 or more parameters, VFP throws "Allowed DO nesting or expression evaluation limit reached."
It is turtles all the way down, and the last ones snap.
[snip]
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]