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:57:47
 
 
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:
01182482
Vues:
45
>>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform