D
Deleted member 103
Guest
Hi,
is the result of "IndexOf" an error or is it normal?
is the result of "IndexOf" an error or is it normal?
B4X:
Dim lstInt As List
lstInt.Initialize
lstInt.AddAll(Array As Int(10,20,30,40,50,60))
Dim str As String = lstInt.Get(3)
Log("IndexOf=" & lstInt.IndexOf(str)) 'Result = -1 (Bug?)
Dim lstString As List
lstString.Initialize
lstString.AddAll(Array As String("10","20","30","40","50","60"))
Dim str As String = lstInt.Get(3)
Log("IndexOf=" & lstString.IndexOf(str)) 'Result = 3 (OK)