Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple form question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00747365
Message ID:
00747830
Vues:
21
>>>I just need to verify something that kinda struck me as odd.
>>>
>>>Does a controll's init method fire before the form's init method?
>>>I am using a modal form.
>>>
>>>This seems kinda odd to me. If someone could try to explain this behaviour to me maybe it will make sense.
>>>
>>>Einar
>>
>>The form initialization is divided into two phases. Form.Init() fires after the Init() of the contained objects, Form.Load() fires before the Init() of the contained objects.
>>
>>Load() can be used to prepare tables.
>>
>>In the Form.Init(), you can reference the contained objects. For instance, you can disable individual objects.
>>
>>Likewise, the form destruction is also divided into two parts.
>>
>>Hilmar.
>
>Parameters passed to a form are first available in the form.init() right?
>
>I encountered this when I needed the parameter information in the control init() and I thought this was available.
>I found a workaround by not passing a parameter to the form but insted making it a private variable in the calling program.
>
>Controlname.activate() fires after form.init() right? I guess I could have done it that way also.
>
>Well anyways thanks for the info.
>
>Einar

Einar;

When I pass Parameters to a form, I create a custom Parameter as a member of the form so all objects of the form may use the passed value as required. Place the required code in the Init of the form. By the way create one parameter for the form for each parameter required.

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform