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:
00173502
Vues:
33
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform