Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute the parent class method, but not a grandparent
Message
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00535248
Message ID:
00535270
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Nadya,

This is a pretty classic example of a bad thing. There's either a problem with the grandparentclass or the parentclass design. It's more appropriate to fix that problem than workaround it. If you call the parentclass and it has a dodefault() the grandparentclass code will execute.

If you now need conditional behavior use a property setting that your subclass can change.

>In a grid AfterRowColChange I have some custom code, when I invoke
>its parent code with dodefault(nColIndex). This grid is based on Highlighted grid, so this code does highlighting. I've just checked our wggrid class and found out, that it has this code:
>
>LPARAMETERS nColIndex
>*--------------------------------------------------------------------------
>* -- NSL 2/29/00 Per request of Nadya
>* -- Added the check for the existance of the hasnavstand property first
>* -- Nadya must be using this grid on a non-WG form.
>*--------------------------------------------------------------------------
>IF pemstatus(thisform,'hasnavstand',5) and thisform.hasnavstand
>	thisform.navstand.navupdate()
>ENDIF
>
>I don't want to execute this code. How can I achieve it?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform