Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling problem - Help!
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00667122
Message ID:
00667221
Views:
23
Michael,

If the class inheritance hierarchy has any code in the Error() method, the object is going to trap the error. The ON ERROR handler will never fire.

You will need to override the Error() method of the object whose method you are using to call into the error producing code. Something like this:
lparameter lnError, lcMethod, lnLine

if ( lnError = ERROR_YOU_WANT_TO_TRAP )
   * provide your error handling
else
   dodefault( lnError, lcMethod, lnLine )
endif
>Yes - Developed the object with a demo form for someone elses application. I now find that their app in developed with CodeMine. Near as I can tell, when they run it outside of Codemine it's running fine - but when run within Codemine the Codemine error handler reports the error.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform