Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone have a good, generic error handler
Message
From
03/03/1999 14:09:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193673
Message ID:
00193716
Views:
12
Brenda,

I think it has a lot to do with the type of software and who uses it. Here's a generic trap we use *generic* users:

if showerror
errtext=message()
else
errtext='An error has occurred.'
endif
=messagebox(errtext,48,'Error')
close all
clear windows
return to master

The variable showerror is public and is set to true with an on key label statement for ctrl-F12. If ctrl-F12 has not been set, the user gets a short general message. If the user calls Tech service about the error, they will tell the user to press ctrl-F12 and then let the error happen again. The tech then takes action depending on what the errtext is.

HTH,
Allen

>Using a error handler that was written several years ago for a 2.6 application. It interpretes many of the error codes and give an english like message, and then either bailsout or retries. Would like something to compare to my current error handler.
>
>Do most people try to interprete the error code and give an english message? As a programmer, rarely do I find this useful. I would rather the program, line of code, error number, error message, etc. Any thoughts on this?
>
>Thanks - Brenda
>BGrossnickle@mail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform