MSM-Workstation
Macros
Go back to the alphabetic list of macros
Go back to the first page of this tutorial
%%OK
This macro is replaced by the name of the local variable that holds
the return code from the macro %%Perform.
Typically, the this variable will have a true value, the exception
being when the performed action executed the code generated
by the macro %%NotOK.
Example
%%Perform(DataMain.MoveNext)
d I^%msgbox($S(%%OK:"OK",1:"Problem"))
Perform the action called
"MoveNext" on the control named
"DataMain" to move the data pointer to the next record.
and pop up a window that displays an informative message whether
or not the operation was successful.
See also
%%RetCancel,
%%RetNormal,
%%RetCode,
%%Return,
%%Cancel,
%%IsOK and
%%NotOK.