MSM-Workstation
Macros
Go back to the alphabetic list of macros
Go back to the first page of this tutorial
%%RetCode
This macro is replaced by the name of the local variable that
holds the return value that results from the execution of
the code generated by the macro %%DoWin.
Typical values for this variable
are %%RetNormal
and %%RetCancel.
Examples
%%DoWin(Window,.Params)
If %%RetCode=%%RetNormal Quit
d I^%msgbox("Return code is "_%%RetCode)
Invoke a window, and continue processing
normally if the window invocation yields a "normal" return
code. Otherwise, pop up a window showing the returned value.
See also
%%RetCancel,
%%RetNormal,
%%Return,
%%Cancel,
%%OK,
%%IsOK and
%%NotOK.