WebListBox.Selected

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

WebListBox.Selected(row As Integer) As Boolean

New in 2010r4

Supported for all project types and targets.

Used to get the selected value of a row.


Method

WebListBox.Selected(row As Integer, Assigns selected As Boolean)

New in 2021r1

Supported for all project types and targets.

Used to set the selected value of a row.

Sample Code

The following tests whether the first row is selected.

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