Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Event
Message
From
10/03/2000 11:18:02
Randy Riegel
Zimish Contracting
Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Error Event
Miscellaneous
Thread ID:
00344241
Message ID:
00344241
Views:
47
I have code in the error event of an object. I would like to display an error message and then force the program to quit. After I display the error message (using MessageBox) I have the QUIT command. The program does not quit. Instead it starts processing the code after the error occured. Here is the code I have:


MESSAGEBOX("cmdSave" + chr(13) + "Error : " + message() + chr(13) + ;
"Method : " + cMethod + chr(13) + ;
"Line # : " + alltrim(str(nLine)), 16, "Fatal Error")
QUIT

I even tried using CLEAR EVENTS rather than QUIT but still didn't work... I'm stumped.

Thanks in advance,
Randy
Next
Reply
Map
View

Click here to load this message in the networking platform