MSM-Workstation
Macros

Go back to the alphabetic list of macros
Go back to the first page of this tutorial

%%RetCancel

This macro is replaced by the constant that corresponds to a special value for the return value that results from the execution of the code generated by the macro %%DoWin.

The special value that this macro is replaced by indicates that the activity in the invoked window was not completed normally, but was cancelled instead.

Examples

%%DoWin(Window,.Params)
If %%RetCode=%%RetCancel d I^%msgbox("Cancelled.") Quit

Invoke a window, and pop up a message when the return code indicates that processing of the invoked window was cancelled.

See also

%%RetNormal, %%RetCode, %%Return, %%Cancel, %%OK, %%IsOK and %%NotOK.