Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Missing methods in my subclass
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00159870
Message ID:
00160102
Views:
23
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform