Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding code to every form/WriteMethod
Message
From
27/03/1998 01:13:58
 
 
To
26/03/1998 12:47:26
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00087353
Message ID:
00087555
Views:
27
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
Previous
Reply
Map
View

Click here to load this message in the networking platform