Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding code to every form/WriteMethod
Message
De
27/03/1998 01:13:58
 
 
À
26/03/1998 12:47:26
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00087353
Message ID:
00087555
Vues:
31
Hello, >I added some code to the Init method of my form class and now I want to make sure this code is executed for all forms. The hard way would be to open up every form and add a DODEFAULT() to every Init method that has other code. Is there an easier way? In this case I do the following: 1. Add method AdditionalInit() to base form and all custom code specific to given form instance (or subclass) goes there. 2. In Init() of base form I call AdditionalInit method, so all form will execute their own code and base code which is not changed because Init() is not overriden in subclasses.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform