Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Raising Error from ERROR() to ON ERROR Error Handler
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Raising Error from ERROR() to ON ERROR Error Handler
Divers
Thread ID:
01684274
Message ID:
01684274
Vues:
64
Hi all -

I have a situation where I'd like to have an object's .ERROR() process an error that occurs in the object, then "raise" or "throw" the error such that the global error handle (i.e., what the app sets up using ON ERROR at launch) will then be able to do its thing as well. I was thinking I could use the ERROR nErrorNumber or cMessageText2 command in .ERROR(), but that is treating like an error (duh!) and as it's in .ERROR() you get the regular VFP Cancel / Suspend / Ignore dialog.

[Note: Use of TRY/CATCH is not an option in the scenario I'm dealing with.]

Any way to do this?

TIA.
________________
_____/ Regards,
____/ al
________________
_____/ Regards,
____/ al

___________________________________________
www.jcn-associates.com
Visual FoxPro Database Application Development and IT Project Management
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform