Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a GrandParent's code
Message
De
11/07/2000 02:53:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00390278
Message ID:
00390627
Vues:
8
>>Bypassing a class's code to try and call the grandparent's code is a sure sign that your class design has problems.

More like 'SBT's code' ...

But that's nothing new<g>.

>John,
>
>I'll go further than Erik did in his reply.
>
>Don't do it.
>
>Bypassing a class's code to try and call the grandparent's code is a sure sign that your class design has problems. There are better ways to design your classes so that you never have a need to bypass a level of code.
>
>>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?
-- 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