Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple class question
Message
 
To
07/01/1999 10:07:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00173492
Message ID:
00173502
Views:
32
Hi David,

>I created a custom class based on the form class and put code in the init procedure and some user-defined methods. When I create a form based on the custom class and put additional code in the init procedure the original code from the class does not run. What am I missing here? Thanks.

You have to explicitely call the code in the parent class. By defaults, VFP overrides this code. SInce VFP 5 you can use DODEFAULT():

* Init
DODEFAULT()
*... the rest of the new code

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform