|
-
Nov 4th, 2000, 10:19 PM
#1
Can I anyone tell me the fastest way to
search a 2-dimensional array.
I have a 100 x 100 array and I only have to search
the values on the first column.
-
Nov 4th, 2000, 11:30 PM
#2
Frenzied Member
I don't have time to make code for you (sorry), but you can use two loops to do it, one for columns, one for rows...
-
Nov 5th, 2000, 03:46 AM
#3
Fanatic Member
OK, to search any multi dimensional array in only the first column, try this:
Code:
'This will find the first occurance
For i = 0 To UBound(MultiDimArry, 1)
If MultiDimArry(i, 0) = SearchString Then Exit For
Next i
'If i is not UBound(MultiDimArry, 1) then i = the dimension that has searchstring
-
Nov 5th, 2000, 11:06 PM
#4
Thanks to all your posts!
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
|