Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest error routine of all time
Message
From
03/05/2000 23:15:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Simplest error routine of all time
Miscellaneous
Thread ID:
00365939
Message ID:
00365939
Views:
53
I've used this error handler as the most simple to get done what has to be done.

on error do ezerror with message()


PROCEDURE Ezerror
PARAMETERS cMessage
lnVal = messagebox("AN ERROR OCCURED" + CHR(13) + CHR(13) + cMessage + CHR(13) + CHR(13),2)
DO CASE
CASE lnval = 3
CANCEL
CASE lnval=4
RETRY
CASE lnval=5
RETURN

ENDCASE
RETURN

No constants, no subroutines, no external routines. Simple as it gets.
Next
Reply
Map
View

Click here to load this message in the networking platform