Check you are actually pointing to the code (.prg) location that you think you are in code!!
Many times I have found VFP picking up programs of the same name in different locations because my set path was screwed.
Dave
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko Sent: 03 March 2016 06:54 To: ProFox Email List profox@leafe.com Subject: Re: Subclassed Methods Not Getting Executed
At 13:10 2016-03-02, Ken Dibble krdibble@stny.rr.com wrote:
OK, maybe I missed it. No, there is code in the exit method thatcloses the table. Maybe, there is an error in the test. Insert a set step on. The method never gets executed! I have used this way for years for other forms, but in this form, the exit method just does not get executed.
I have scanned the source code for odd characters. There are none.
- Copy the code out of the method to a plain text file. Delete all
leading and trailing spaces. Save the file as plain text and close the file. Then, in the Properties window, right-click the method and choose "Reset to default". Then open the text file, copy the code from it, and paste it back into the method. That usually works for me, but if it doesn't:
All of my code is in .prg files. I have verified that the code has no odd characters in it.
- A.
If it's a program class, delete the .fxp files related to it and its superclasses and recompile them.
Having been bit when VFP was not so good at keeping track of when to recompile, I do recompile. That is not it.
- B.
If it's an .scx or a .vcx class, BACK UP the file and delete the contents of the Objcode field in the subclass, and recompile the object.
Nope. It is a .prg.
This approach has been working for years. It is very puzzling that the subclass code is not running. And because it is not running, I have nowhere to attach a set step on to. Except possibly the parent class to see if those methods are executing, but that still will not tell what is going on. Very puzzling.
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]