Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of Instantiation
Message
De
20/06/2007 09:08:36
 
 
À
19/06/2007 14:04:22
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01234334
Message ID:
01234470
Vues:
19
Is it possible to force Foxpro to instantiate the objects on a form in a specific order? If so, how?

Why do you need to do this?

IMHO, it is very bad programming practice to have yur code rely on the order in which objects are instantiated - it is too easy to break the code.

Instead, you should call a custom method from the form's init() to do whatever setup is required. Since the form's init() fires aftere all of the contained objects have been instantiated, you can be sure that all the required objects are there when your code runs.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform