Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling problem - Help!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00667122
Message ID:
00667221
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform