Re: Dealing with Extraneous Parameters

Author: Ted Roche

Posted: 2016-11-22 at 16:06:21

Duplicate of https://stackoverflow.com/questions/27003126/variadic-functions-in-visual-foxpro

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, 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]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4uyheu6z0hfw7OR59meuSStZqWX44QnZTQ7RBMyqTb8gw@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Ted Roche