RE: Dealing with Extraneous Parameters

Author: Gene Wirchenko

Posted: 2016-11-22 at 15:07:23

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

_______________________________________________

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/28c396f71e5a5aa0fb2fbea51e014fd6@mtlp000083

** 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 Gene Wirchenko