Hello all, here is a basic question I can't solve. Surely something simple.
Here is my code :
At the end I get a list that contains all items with same values.
Too obvious to find it by myself
Serge
Here is my code :
B4X:
Sub Globals
Type arrAnim(index As Int, time As Int, value As Int)
Dim myArr As arrAnim
End Sub
Sub TestList
Dim myList As List
Dim time As Long
time = DateTime.Now
myList.Initialize
For i = 0 To 10
myArr.time = DateTime.Now - time
myArr.value = i * 3
myArr.index = i
myList.Add(myArr)
Next
End Sub
At the end I get a list that contains all items with same values.
Too obvious to find it by myself
Serge