Problem with QueryClose event

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?

Subject: RE: Problem with QueryClose event

There certainly is a bug here. As of now, there is no workaround that I can think of for this issue. There is an SPR opened for the issue: AGUD7DSU3Q. The plan is to have this fixed by 8.0.3