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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only