Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Errors being incorrectly ignored
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Errors being incorrectly ignored
Miscellaneous
Thread ID:
00834346
Message ID:
00834346
Views:
63
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.
Next
Reply
Map
View

Click here to load this message in the networking platform