General information
Category:
Forms & Form designer
Thanks John,
Hmm, that's a bit of a problem, particularly when you have just finished
designing a form class that takes parameters !
There are other problems too : if you do not want the form to
even initialize depending on the value of some of the parameters,
am I right in saying that the only way to do it inside a formset
is to have the form initialize as HIDDEN and then either un-hide it
or release it depending on what the parameters are ?
Michel.
>Hi Michel ---
>
>Put the LPARAMETERS param1,etc... in the Init of the Formset and not the form. Create custom properties in the Formset to store the parameters to. You can access them from the form level with THISFORMSET.Property *but* not in the Form init because form init comes BEFORE Formset init.
>
>
>>The DO FORM ..... WITH param1, param2, etc... allows you
>>to pass parameters to a form which one captures in the Init
>>method of the form.
>>
>>If a form is part of a formset, however, and is the first
>>form (or even the only form) in that formset that will be
>>executed, how do you pass parameters to it from the
>>DO FORM statement in the Command Window ?
>>
>>Thanks in advance.
>>Michel.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only