I do something like that from time to time -
it is also the easiest way yo pass an array by reference
Arnon
>
>What I have is custom 'parameter' class that I use to pass parameters.
The
>class has one property which is an array. I create an instance of this
>object just before calling a form and I pass this object as the only
>parameter required to the form. With an array, the object can store any
>number of parameters. My forms have an oparm property which is either
NULL
>or a reference to a parameter object. These values are accessable in the
>form and preserved after the form is destroyed. After returning from the
>form I do what I need to with the values and release the parameter
object.
>
>There is an 'idea' out there that says you should not pass more than one
or
>two parameters to any object/method etc. Pass an object reference
instead.
>I tend to agree though I do have methods that are quite willing to accept
>10 or more parameters!
>
>Bob
>
>
Précédent
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