Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Skipping inheritance
Message
De
08/06/2003 15:38:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/06/2003 15:15:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00797802
Message ID:
00797811
Vues:
22
>>lnReturnValue = GrandParent::MyClass(Par1, Par2)
>I'm presuming that I would replace "GrandParent" with the actual name of my grandparent class.

Yes, that is the idea.

>Do you know if there is some generic way to get at that name?

No, I know of no automatic way. I think it was precisely this difficulty (in the usual case of getting the parent class) that the DoDefault() was introduced in VFP5.

But I think it should be possible to do the usual inheritance, and put conditional code in the parent class (that is, the one between the grandparent and the grandchild), to execute some code, or not.

Or perhaps you should inherit directly from what you now consider the "grandparent".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform