COMBOBOX ADD statement

Purpose

Add a string value to a combo box control.

Syntax

COMBOBOX ADD hDlg, id&, string_expr

Remarks

Add a string value specified in string_expr to a combo box control.

hDlg 

Handle of the dialog that owns the combo box control.

id&

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

Restrictions 

If the combo box has the %CBS_SORT style, the new string string_expr will be inserted into the list box in alphanumeric order; otherwise it is added (appended) to the end of the list.

Under Windows 95/98/ME, a combo box is limited to 32,736 items. In all versions of Windows, the actual string data contained by the combo box is limited only by available memory.

See also

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