WebListBox.Selected

From Xojo Documentation

Method

WebListBox.Selected(Row As Integer) As Boolean

New in 2010r4

Supported for all project types and targets.

Returns True if the Row passed is selected. You can set a row’s selected status by assigning a Boolean value to Selected.

Example

The following tests whether the first row is selected.

If ListBox1.Selected(0) Then
MessageBox("Selected")
Else
MessageBox("Not Selected")
End If

The following code selects the second row. Row numbering is zero-based.

ListBox1.Selected(1) = True