Android Question get item index from list

Addo

Well-Known Member
Licensed User
Longtime User
how do i get item index from a list without loop i have tried the following


B4X:
Type Person(name As string, number As Int)
Private persons As List


Dim pritem As person

pritem.name  = "item1"
pritem.number = 0

persons.add(pritem)

persons.IndexOf("item1")


but did not success to return the index
 
Top