Guest_imported
New member
- Jan 1, 1970
- 0
I have a large array (about 15500 items) and I am currently searching through it using a for each loop:
for each item in MyArray
if item="what I'm looking for" then
some code here
exit for
end if
next
but the problem is that this is extremely slow, as this bit of code is being repeated about 14000 times for the program I'm making.
I was wondering if there's a quicker way to find if an item exists in an array?
for each item in MyArray
if item="what I'm looking for" then
some code here
exit for
end if
next
but the problem is that this is extremely slow, as this bit of code is being repeated about 14000 times for the program I'm making.
I was wondering if there's a quicker way to find if an item exists in an array?