Edit

ConfirmClose (windowRef)

A script handler you can implement for custom script windows to save changes when the user clicks the close box in the window title bar. You will not get a ConfirmClose message for standard MoneyWorks windows.

Automatically called:  When a custom modeless window's close box is clicked (or File -> Close Window command). You should return TRUE if the window may close, or FALSE if the window should not close. Before returning you can conduct a dialog with the user if changes need to be saved or discarded.

Use for:  If closing a custom window might require changes to be saved.

Specific Naming You should implement an ConfirmClose handler that is specific to the particular window ID of interest. e.g. ConfirmClose:<WindowId>