MSM-Workstation
Macros

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

%%KillCtl ( [ WinName . ] CtlName )

Remove a component.

WinName A string literal (without quotes) representing the name of a window, or an at-sign followed by the name of a local variable (@name) where the value of that variable is expected to be equal to the name of a window at run-time.
If missing, the default is the current window.

CtlName A string literal (without quotes) representing the name of a control, or an at-sign followed by the name of a local variable (@name) where the value of that variable is expected to be equal to the name of a control at run-time.

The macro %%KillCtl should only be used for components in windows that were created by other software than the MSM ViEW-Builder, e.g. by directly merging structures into ^$Window, or by using the macro %%MergeCtl.

Example

%%KillCtl(Test.Button)
Kill a control called "Button" in a window called "Test".

See also

%%MergeWin, %%KillWin and %%MergeCtl.