WebListBox.ListIndex

From Real Software Documentation

Jump to: navigation, search
Property (As Integer)

IntegerValue = aWebListBox.ListIndex

The number of the currently selected row. ListIndex is zero-based. ListIndex defaults to -1 and reverts to -1 when no rows are selected.

Example

Check if a row has been selected and if it has, get the value in the first column.

Dim person As String
If Me.ListIndex < 0 Then
MsgBox("Please select a row.")
Else
person = Me.Cell(Me.ListIndex, 0)
End If
Personal tools