|
-
Feb 16th, 2000, 01:17 PM
#1
Thread Starter
Fanatic Member
Can someone tell me what is the fastest way to search something in a big array? For...Next statement doesn't work too good after array gets to big.
Thanks in advance
------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.
-
Feb 16th, 2000, 04:15 PM
#2
Frenzied Member
Are the elements of the array sorted?
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
-
Feb 16th, 2000, 05:27 PM
#3
Hyperactive Member
If the array is not sorted, walk thru it, element by element.
If it is sorted, you can start in the middle, check if you have to go to the 1st or the 2nd part of the array, then check the half of the part of the array that is left.
Or cheat, and use an invisible listbox, and use the API to find an item :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|