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

此方法在列表框中设置当前选定的项目。 ItemIndex值为-1时,将取消选择当前选择。 此方法不适用于多选列表(请参阅SelectionStyle)。