Re: Dealing with Extraneous Parameters

Author: Gene Wirchenko

Posted: 2016-11-23 at 10:53:50

At 04:07 2016-11-23, Ted Roche <tedroche@gmail.com> wrote:

>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.

152 by my testing, but this is irrelevant.

What practically everyone has missed is this is *NOT*, repeat

*NOT*, about how to pass a lot of parameters. Using a parameters

object is irrelevant.

Take a look at the title of the thread:

Dealing with Extraneous Parameters

If a caller passes too many parameters to a procedure, how do you

handle the situation in the procedure? The short answer appears to

be that you can not.

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/2056962e88c64c06e9747f226f9af529@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