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:57:47
 
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:
01182482
Views:
43
>>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.
>
>There are two downsides of this idea:
>
>1) Since I have to prepare an array with the parameters I would not be able to write one line menu command.
>
>2) I would not be able to guess each parameter's function based on parameter's name.

Like I said, I'm not there, so I guess I don't see the whole problem. Don't you have to prepare the parameters themselves? If you don't know the function of the parameters, then how do you know that what you are sending makes any sense to the receiving method?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform