ListBox-SetCurSel

Function Name dcl-ListBox-SetCurSel
Syntax   (dcl-ListBox-SetCurSel <CONTROL> ItemIndex [as Long])
Return Type Boolean (T if successful; otherwise NIL)
Applies To List Box

This method sets the currently selected item in the list box. An ItemIndex value of -1 deselects the current selection. This method does not work for multiple-selection lists (see SelectionStyle).