Information générale
Catégorie:
Codage, syntaxe et commandes
Mark,
I can shed some light on this one. I had exactly the same problem and it drove me crazy !
IT IS A DEFINITE FOXPRO BUG ! I use VFP 5.
After looking at the history of my classes I noticed that at one point the missing method had been a "hidden" method in the original class, for experimentation purposes. It had been put back to PUBLIC but I was still experiencing this crazy situation where with some subclasses I could see the method and others I could not.
I tried deleting the method and re-pasting it in but that did not make a difference.
The only thing that worked was :
--------------------------------
1) Copying the code in the method.
2) Deleting the method.
3) Creating a method with a new name. Make sure it is a PUBLIC method.
4) Pasting the code into that new method.
5) Doing a REPLACE ALL ACROSS ALL OBJECTS of the explicit references
to the old method, by explicit references to the new method.
That corrected my problem.
Michel.
=================== Original message follows ======================
>>Paul,
>>If you mean you don't see them in the class designer, that's because you won't- they are inherited by default at run time.
>>
>>Mark
>>
>
> So how do I override the method? Why would some of the parent's methods show up, but not others? Is there a way to force them to appear?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement