Home > Language Reference > Classes > ChoiceControl
ListIndex Property
Item selected in a list.
Syntax
Public Property Get ListIndex() As Integer
Public Property Let ListIndex(ByVal iIndex As Integer)
| Parameter | Description |
| iIndex | Index of the selected item. |
Remarks
The ListIndex property reads or modifies the selected item in the list displayed by the control. The index of the first element is zero whilst the last element is ListCount -1.
If no element is selected, this property returns -1. On the other hand, to delete the current selection, set the value of this property to -1. The Change event is not raised when you modify the selected element using this property.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |