Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional number of parameters and protected procedure
Message
De
04/01/2007 14:42:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01182425
Message ID:
01182466
Vues:
37
>>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform