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)

ParameterDescription
iIndexIndex 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

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A