The QueryClose event is performed after the document is closed. This problem occurred in Notes 8.0.1 and Notes 8.0.2. In Notes 7 the QueryClose event is performed before the document is closed.
Steps to reproduce:
Create a new empty form and add a messagebox statement in the QueryClose event.
Example:
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Messagebox "QueryClose"
End Sub
Afterwards create a new document based on the form and close it by clicking on the “X” in the document tab. Result: The document will closed before you see the Messagebox. If you close the document with “ESC” you see the Messagebox before the document is closed.
Does anybody know a workaround?