CONTROL GET TEXT statement

Purpose

Get the text from a control.

Syntax

CONTROL GET TEXT hDlg, id& TO txt$

Remarks

hDlg refers to the dialog that owns the control.

id& is the unique control identifier as assigned to the control with a CONTROL ADD statement. Any text in the control is placed into the txt$ variable.

With combo boxes, CONTROL GET TEXT returns the text entered in the edit portion of the control. To retrieve the selected text from the list portion of a combo box or a list box control, use the COMBOBOX GET TEXT statement or LISTBOX GET TEXT statement respectively.

See also

Dynamic Dialog Tools, COMBOBOX GET TEXT, CONTROL SET TEXT, LISTBOX GET TEXT