Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute the parent class method, but not a grandparent
Message
From
26/07/2001 02:54:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00535248
Message ID:
00535545
Views:
18
>
>Because the code will only execute when thisform.hasnavstand=.T., you can use this kludge:
>
>
>LOCAL llHasNavStand, luResult
>
>llHasNavStand=thisform.hasnavstand
>thisform.hasnavstand=.F.
>luResult=DODEFAULT()
>thisform.hasnavstand=llHasNavStand
>
>RETURN luResult
>
>
>hth,

Frank,
IMHO situation specific solution based on assumption higher level class wouldn't need at all.
A case showing how dodefault() might be abused :(
What happened to good old class scope resolution operator :: ?
dodefault() was only meant to be a shortcut. It is merely :
parentclass::method

desiredclasslevel::method
Is the route IMO.
Regards
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform