Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skipping inheritance
Message
From
08/06/2003 15:06:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/06/2003 14:58:03
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00797802
Message ID:
00797805
Views:
30
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform