Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional number of parameters and protected procedure
Message
From
04/01/2007 14:42:18
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01182425
Message ID:
01182466
Views:
35
>>>>Use a array instead or an object, or default the parameters the first method doesn't get and send them all.
>>>>
>>>
>>>Thanks, Al. For my particular purpose I have to know exactly how many parameters I passed.
>>
>>Then why do you turn down the array suggestion?
>
>Because I'm calling this like this
>
>oFormMgr.DoForm('MyFormClass',myParam1, myParam2) from the menu. How can I use parameters array?

Maybe I'm not understanding the issue. If you replace myParam1, myParam2,... with and array "aParams" holding as many values as needed and in the MyFormClass init, accept an array instead of a series of parameters, it seems like a simple way to go.

Likely I'm just not seeing the whole issue as you are.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform