After any action logic for this event has been executed, MSM-Workstation will check whether code from the macro %%NotOK has been executed. If the macro %%NotOK was invoked, no further action will take place.
Otherwise, MSM-Workstation will execute the code from the macro %%Return (without parameters).
In MWAPI, this event is called "CLOSE".
Typical activity for the action logic for this event would be to validate that it is indeed safe to abandon the window in question.
This is the place to insert warnings like
and to take appropriate action in the case that the end-user feels that the window should not be abandoned after all.
Go to the alphabetic list of events.