COMBOBOX GET TEXT statement

Purpose

Retrieve the default text from a combo box.

Syntax

COMBOBOX GET TEXT hDlg, id& TO txt$

Remarks

Retrieve the default text from a combo box. The default text is determined by the current selection in the list portion of the combo box. COMBOBOX GET TEXT returns an empty string if there is no current selection in the list; or when text is typed/entered into the edit portion of the combo box (as opposed from being selected from the list).

Use CONTROL GET TEXT to retrieve the text from the edit portion of a combo box.

hDlg

Handle of the dialog that owns the combo box control.

id&

A unique identifier in the range 1 to 65535, as assigned with the CONTROL ADD COMBOBOX statement.

txt$

Identifies the string that receives the text from the combo box.

See also

Dynamic Dialog Tools, COMBOBOX ADD, COMBOBOX DELETE, COMBOBOX RESET, COMBOBOX SELECT, CONTROL ADD COMBOBOX, CONTROL GET TEXT