Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple form question
Message
De
31/01/2003 14:56:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00747365
Message ID:
00747817
Vues:
24
>>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform