GuiGetCtlValue()

Retrieves a control's setting and stores it in the REXX variable associated with that control.

error = GuiGetCtlValue(Control)


Args

Control is the control whose variable is to be set. 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.

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.


Notes

Normally, GuiGetCtlValue is called by a Window Layout script, and the associated variables in that object are set. For example