GuiRemoveCtlText()
Removes text from a control or window.
error = GuiRemoveCtlText(Control, Options)
Args
Control is the control whose text is to be removed. You should pass the name of the REXX variable that you associated with this control. The handle to the window containing this control must be stored in the GuiWindow variable, unless you qualify the control name with the object name. (See notes for details).
You can alternately pass a window handle for the Control arg. For example, you can pass the handle to your window (gotten from the GuiWindow variable set by GuiCreateWindow) to effect the window itself (as opposed to a particular control in the window), or pass a handle gotten with GuiGetCtl().
If Control is omitted, then the value of the GuiWindow variable is automatically used.
Options are various options you can specify, and these options may vary depending upon the type of control (or window).
Returns
If successful, an empty string is returned. If an error, an error message.
Notes
If Control is omitted, or is a window that you have created, then the window area is invalidated so that its background will be erased (an ERASEBKGND event happens) if you pass an Options argument of 1, it is repainted (a PAINT event happens).
/* Invalidate the window whose handle is stored in GuiWindow, * but don't cause an ERASEBKGND event. Do only PAINT. */ GuiRemoveCtlText()