MSM-Workstation
Macros

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

%%CurrWin

The macros %%CurrWin and %%CurrCtl are used to identify the window and component for which action logic is being executed.

The macro %%CurrWin is replaced by an espression that returns the name of the window in question.

Examples

%%Set(%%CurrWin.Title,"Text")
Set the title of a window to a specific value, using a macro.

Set ^$W(%%CurrWin,"TITLE")="text"
Set the title of a window to a specific value, using the MWAPI directly.

See also

%%CurrCtl, %%Focus, %%FocusCtl, %%FocusWin and %%SetFocus.