Hello,
I am trying to compare two different size lists
lets say list1 : 24,21,19,17
list2 : 21,17
I want to remove the items from list1 if the item exists in list 2
I am trying below code:
but this gives me a out of bounds error altough there mustnt be any out of bounds. Can you correct my code what am i doing worng ?
TY
I am trying to compare two different size lists
lets say list1 : 24,21,19,17
list2 : 21,17
I want to remove the items from list1 if the item exists in list 2
I am trying below code:
B4X:
Dim item1 As String
For x = 0 To toplamliste.Size - 1
item1 = toplamliste.Get(x)
For y = 0 To benimliste.Size - 1
If item1 = benimliste.Get(y) Then
toplamliste.RemoveAt(x)
End If
Next
Next
but this gives me a out of bounds error altough there mustnt be any out of bounds. Can you correct my code what am i doing worng ?
TY