Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MyProperty_Assign and inheritance?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00265679
Message ID:
00265876
Vues:
15
>If I subclass a class with a custom property that has an assign method coded, I'm noticing in the subclass the default LPARAMETERS statement shows up. Do I need to wipe that out so it doesn't override the inherited code? Or is it alright just to leave it there? TIA!

It is an editor helper. If you open a method without code in it, it will bring in the parent lparam statement for you... but, if you don't add code to the method it doesn't get saved. You can see this by looking in the properties window and observing that the method in question is not BOLD which indicates it contains code.

If you do see a BOLD method that you don't have code in... there could be a space in there and you wouldn't get the parent class behavior... just right click on the method in Properties box and choose Reset To Default.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform