At 12:34 2016-11-22, "Michael Glassman" MHGlassman@PioneerDrama.com wrote:
Have you thought about passing your parameters in a single array, Gene? That way you can test to see if you have received the correct number of parameters using alen() and empty().
It was a *standalone* program. The idea was to invoke it easily, such as in one line. It took only one parameter. I just wanted to detect if too many parameters were passed to it. As far as I can see, VFP does not allow this sort of checking in a general way.
The number of parameters is limited, but it seems it is way more than 26. On my system, it is 152. Yes, each parameter got its correct value.
[snip]
Sincerely,
Gene Wirchenko
Duplicate of https://stackoverflow.com/questions/27003126/variadic-functions-in-visual-fo...
WONTFIX
On Tue, Nov 22, 2016 at 4:07 PM, Gene Wirchenko genew@telus.net wrote:
At 12:34 2016-11-22, "Michael Glassman" MHGlassman@PioneerDrama.com wrote:
Have you thought about passing your parameters in a single array, Gene? That way you can test to see if you have received the correct number of parameters using alen() and empty().
It was a *standalone* program. The idea was to invoke it easily, suchas in one line. It took only one parameter. I just wanted to detect if too many parameters were passed to it. As far as I can see, VFP does not allow this sort of checking in a general way.
The number of parameters is limited, but it seems it is way more than
- On my system, it is 152. Yes, each parameter got its correct value.
[snip]
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.06 states
PARAMETERS ParameterList Specifies one or more variable or array names to assign data to. Use commas to separate multiple parameters in ParameterList. Generally, you can pass a maximum of 26 parameters; however, in some circumstances, you can pass 27 parameters.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Gene Wirchenko Sent: 22 November 2016 21:07 To: profoxtech@leafe.com Subject: RE: Dealing with Extraneous Parameters
At 12:34 2016-11-22, "Michael Glassman" MHGlassman@PioneerDrama.com wrote:
Have you thought about passing your parameters in a single array, Gene? That way you can test to see if you have received the correct number of parameters using alen() and empty().
It was a *standalone* program. The idea was to invoke it easily, such as in one line. It took only one parameter. I just wanted to detect if too many parameters were passed to it. As far as I can see, VFP does not allow this sort of checking in a general way.
The number of parameters is limited, but it seems it is way more than 26. On my system, it is 152. Yes, each parameter got its correct value.
[snip]
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]
On Wed, Nov 23, 2016 at 4:39 AM, Paul Newton Paul.Newton@pegasus.co.uk wrote:
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.06 states
PARAMETERS ParameterList Specifies one or more variable or array names to assign data to. Use commas to separate multiple parameters in ParameterList. Generally, you can pass a maximum of 26 parameters; however, in some circumstances, you can pass 27 parameters.
Yeah, I'm pretty sure they cribbed that from the Hacker's Guide :) I remember testing that. That was the limit for VFP6/7, but VFP9 appears to have a much higher limit.