Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Raising Error from ERROR() to ON ERROR Error Handler
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Raising Error from ERROR() to ON ERROR Error Handler
Miscellaneous
Thread ID:
01684274
Message ID:
01684274
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform