Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing methods in my subclass
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00159870
Message ID:
00160102
Vues:
27
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
Fil
Voir

Click here to load this message in the networking platform