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:
00173884
Views:
18
>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.

David,

Just to expand on the correct answers that you got. VFP uses programming through exception approach to inheritence. That means if you write anything (even a comment) in a subclass's method you havbe severed the inheritence form the aprent class. The DoDefault() function is used to execute the code that would have been inherited if you ahd not overrideden the method.
Previous
Reply
Map
View

Click here to load this message in the networking platform