I'm running into a wierd problem and it feels like I'm overlooking something obvious. Anyway, here it is.
I'm converting 2 applications from VFP6 to VFP8. One application is called from the other. Both are compiled as executables. (I'm not sure that matters, but I include it just in case.) In the main program, an ON ERROR routine is set.
In the subordinate program, in the main form, an error occurs within one of the methods. No error event code is written for the form. In VFP6, the ON ERROR routine that was set in the main program is executed. In VFP8, the error *appears* to be ignored. Just to make sure that the second application 'knows' about the ON ERROR, I included a MESSAGEBOX(ON("ERROR")) statement in the method code where the error occurs. It returns the expected ON ERROR routine from the main program. Even so, it does not execute that code.
Also, as an experiment, I modified the method code to store the original ON ERROR statement and set a new one locally. The new one does not execute either. It SEEMS to be behaving as though there were error event code in the object that throws away the error, yet there is none.
Is there a behavior difference between VFP6 and VFP8 that I'm not aware of? I'm puzzled because I would think that it would at least display the default VFP error if it could not find an error routine to execute. Any thoughts?
John
John Groft
Consultant
Computer Task Group, Inc.