Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple class question
Message
 
À
07/01/1999 10:07:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00173492
Message ID:
00173884
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform