Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement