Edit

Close (windowRef)

A script handler you can implement to override standard MoneyWorks behaviour.

Automatically called:  When a window is closed. Use this to dispose any persistent data you may have created for the window (to "dispose" an array, assign 0 to it).

Use for:  Cleaning up regardless of how the user closes the window (Cancel, OK, close box)

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