GuiSetCtlValue()

Sets a control based upon the value of the REXX variable associated with that control. This is used to change the control's contents.

error = GuiSetCtlValue(Control, Options)


Args

Control is the name of the variable associated with the control. The handle to the window containing this control must be stored in the GuiWindow variable.

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 retrieve the settings of all controls in the window (as opposed to a particular control in the window) into their associated variables, or pass a handle gotten with GuiGetCtl().


Returns

If successful, an empty string is returned. If an error, an error message.