Do you have a ON SHUTDOWN active? Do you return false from the QueryUnload() event of the form?
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement