Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set property of controls in INIT of the form?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01450293
Message ID:
01450296
Vues:
89
>I want to find a way to change value of a property on a bunch of controls on a form from the INIT method of the form. This way, when each control's INIT fires, the value of the property is already set. But when ran a little test I see that the INIT of controls fires first and then the INIT of the form. Any suggestions? TIA.

Init of the forms' controls fires before the Init of the form (from the inner most to the top most container). The only way to fire Init of the control after the Init of the form would be by adding this control in run-time in form's Init.

In order to set some property of many objects you can use SetAll method of the form.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform