VB.Net Search Array
Posted on 2005-04-20
I have a two dimensional string array defined as (2,5). EX:
This(0,0) is(0,1) an(0,2) example(0,3) of(0,4)
records(1,0) that(1,1) I(1,2) have(1,3) there(1,4)
If I wanted to find the word 'example' in this array how would I do this without having to loop through all the items in the array? My actual array has about 600,000 records in it so looping through would be ridiculously slow. I tried using the binarysearch method but this only works with one dimensional arrays.