vecino Well-Known Member Licensed User Longtime User Oct 3, 2018 #1 Hello, that's my question. Right now I do a loop to find out if the item that I'm going to add already exists. Regards.
Hello, that's my question. Right now I do a loop to find out if the item that I'm going to add already exists. Regards.
stevel05 Expert Licensed User Longtime User Oct 3, 2018 #2 B4X: If MyList.IndexOf(NewItem) = -1 Then MyList.add(NewItem) Upvote 0
KMatle Expert Licensed User Longtime User Oct 3, 2018 #3 You can use a map instead. If a key exists, it will be overwritten automatically. Upvote 0
vecino Well-Known Member Licensed User Longtime User Oct 3, 2018 #4 Thank you very much, friends Upvote 0