How can i get values multipl selected rows on listbox ?
Tou can tell if a row is selected simply by using RowSelectedAt
With this loop, for example, you can compile a vector with the indexes of the selected rows (although I would use RowTag more, but it’s just an example)
Var selectedRows(), row As Integer
For row = 0 To YourListboxName.LastRowIndex
If YourListboxName.RowSelectedAt(row) Then selectedRows.Add(row)
Next row
I’m trying to get the texts in the rows I multi-selected.
If you have the row indexes, you can have the texts
Var selectedRowsText() As String
Var row As Integer
For row = 0 To YourListboxName.LastRowIndex
If YourListboxName.RowSelectedAt(row) Then
selectedRowsText.Add(YourListboxName.CellTextAt(row, columnThatYouWant))
End If
Next row
It worked with the code below. Thank you.
Var rowsSelected As Integer
For Each row As ListBoxRow In ListBox5.Rows
rowsSelected = rowsSelected + 1
If row.Selected Then
System.DebugLog(Listbox5.Cell(rowsSelected-1,0))
end if
Next
Yes, it’s the same