Occurs just before the current document is closed.
OnUnload( Source as NotesUIDocument, Continue as Variant )
Source
NotesUIDocument. Read-only. The current document.
Continue
Boolean. Read-write. Indicates whether or not the document will close. Initially set to True. Set this parameter to False if you do not want to close the document.
When you create a script that responds to this event, Domino® creates the syntax of the event for you (including the parameters). You do not need to type it in.