Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a GrandParent's code
Message
De
10/07/2000 12:55:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00390278
Message ID:
00390314
Vues:
10
Thanks Doug. I knew this was a way to do it, I just didn't know if there was an undocumented (or hard to find) VFP feature that would allow this to be done without having to type in the ParentClass name. Guess not...

>John,
>
>If you grandparent's class name is gp and the method you want to call is LostFocus.... just use gp::LostFocus()
>
>>Hey Fox Experts -
>>I have a dilemma. I am sub-classing a form and in turn the objects within. In one of the objects in the sub-class, I'm modifying the LostFocus method code.
>>
>>I have copied the LostFocus code from the Parent and dropped it into the sub-class method to make mods to it. Within THAT code is a call to the DODEFAULT() of the Parent's Parent.
>>
>>I want to change the code in the sub-class and NOT run the code of the Parent, but I DO want to run the code that Parent called in its DODEFAULT(). I've looked at the Help files and they don't seem to show a way to run a GrandParent's code -- jumping OVER the Parent.
>>
>>Does anybody know of a way?
>>
>>TIA!
-- John Kiernan
"Maybe Amelia Earhart was just stealing the plane".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform