Versions des environnements
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement