LISTBOX ADD statement

Purpose

Add a string value to a list box control.

Syntax

LISTBOX ADD hDlg, id&, string_expr

Remarks

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

hDlg 

Handle of the dialog that owns the list box.

id&

The unique control identifier assigned with the CONTROL ADD LISTBOX statement.

string_expr

The text to add to the list box control.

Restrictions

If the list box has the %LBS_SORT style, the new string string_expr will be inserted into the list box in alphanumeric order; otherwise it is added to the end of the existing list.

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

See also

Dynamic Dialog Tools, CONTROL ADD LISTBOX, LISTBOX DELETE, LISTBOX GET TEXT, LISTBOX RESET,.LISTBOX SELECT