Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I create a new VCX of subclasses programatically
Message
 
 
À
09/10/1998 11:45:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00145460
Vues:
48
Fred,

The class that defines a property/method sets a couple of the reserved memo field indicating the name, type and scope. The subclasses of that class only inherit it, they don't have their own copies of that information. So when you delete the property/method from the class the subclasses just lose it. And you might not notice it because VFP would just create a private memvar for the missing property if the subclass overrode the value. It would error out though the first time you tried to access/set this.TheDeletedProperty.

>I'm not sure I see the difference between changing the default value of an existing property and adding a new property with it's own value. They both show up in the VCX in the Properties field. How does it distinguish between the two?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform