B4J Question Does listview.setSelectedIndices work?

mc73

Well-Known Member
Licensed User
Longtime User
Tried the code below to select all items in a listView
B4X:
dim allSelected as list
allSelected.initialize
'itemsList is a listView  
For i=0 To itemsList.Items.Size-1
       allSelected.Add(i)
Next
itemsList.SetSelectedIndices(allSelected)

Not working for me, perhaps am doing something wrong?
 
Top