merlin2049er Well-Known Member Licensed User Longtime User Nov 26, 2013 #1 Is there a quick way to check to see if a value is in the listview? Or do I need to loop thru and individually check each item?
Is there a quick way to check to see if a value is in the listview? Or do I need to loop thru and individually check each item?
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2013 #2 You will need to go over all the items. You should use a Map if you want a quick way to check for whether the key exists or not. Though if your ListView is not too large then the it will be fast enough as well. Upvote 0
You will need to go over all the items. You should use a Map if you want a quick way to check for whether the key exists or not. Though if your ListView is not too large then the it will be fast enough as well.
merlin2049er Well-Known Member Licensed User Longtime User Nov 26, 2013 #3 Thanks. I tried looping thru the listview to check if I had a match. It was getting a bit messy, and ran into index out of bound problems. for I = 0 to listview1.size ... next Click to expand... Upvote 0
Thanks. I tried looping thru the listview to check if I had a match. It was getting a bit messy, and ran into index out of bound problems. for I = 0 to listview1.size ... next Click to expand...
klaus Expert Licensed User Longtime User Nov 26, 2013 #4 You must use : For i = 0 To listview1.Size - 1 Upvote 0