Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple form question
Message
From
31/01/2003 14:56:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00747365
Message ID:
00747817
Views:
22
>>>Parameters passed to a form are first available in the form.init() right?
>>
>>Let's say the parameters are passed to the Form.Init(). They are destroyed afterwards, so the logical thing to do is put code similar to the following in the Form.Init():
>>
>>
>>* Form.Init()
>>lparameters tnPar1, tcPar2
>>This.nPar1 = tnPar1
>>This.cPar2 = tcPar2
>>DoDefault()
>>...
>>
>>
>>Regards,
>>
>>Hilmar.
>
>Hilmar,
>
>That is excactly what I did but at a later point I needed the passed parameter in one of the control's init() and this.nPar1 was not defined yet and that is how this whole thing came up.
>
>Thanks for your input.
>
>Einar

Apart from your workaround, you could also transfer some code from the Control.Init() to Form.Init(), or some custom method called from Form.Init().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform