Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Skipping inheritance
Message
De
08/06/2003 15:06:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/06/2003 14:58:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00797802
Message ID:
00797805
Vues:
29
>I'm using VFP 7.0
>
>In one of my classes, I want to skip the parent.method() code, but still get the parent.parent.method() code.
>
>I remember something about the :: operator, but cannot find anything in the help file that helps.
>
>TIA

It is called the "scope resolution operator", but I can't find it in the help right now, either.

In most cases, in VFP 5 or later, it can be replaced with DoDefault(), but you can still use it, for instance, for the case you mention.

I think a complete example would be like this:
lnReturnValue = GrandParent::MyClass(Par1, Par2)
Of course, you might omit the return value or the parameters or both, depending on your specific needs.

HTH,

Hilmar.
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