LISTBOX SELECT statement

Purpose

Select a string in a single-selection list box and make it the default selection.

Syntax

LISTBOX SELECT hDlg, id&, pos&

Remarks

Selects the string value specified by pos&. pos& = 1 for the first item in the list, pos& = 2 for the second item, and so on. The selected item is scrolled into view if necessary. If pos& =0, the selection in the list box is removed.

hDlg 

Handle of the dialog that owns the list box control.

id&

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

Restrictions 

LISTBOX SELECT cannot be used on list boxes that use the %LBS_MULTIPLESEL or %LBS_EXTENDEDSEL styles.

See also

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