Click to See Complete Forum and Search --> : How to search a string in an array


rskshiva
01-22-2005, 05:33 AM
Hai,

I have an aray with string values.
I need to search a string in that array.
Pls suggest me to search the string without splitting the array

Thanks,
Siva R

PeOfEo
01-22-2005, 12:54 PM
This should help:
http://aspnet.4guysfromrolla.com/articles/110602-1.aspx

This uses the binary search algorythm, so the array needs to be sorted first. But they have a good article on how to sort the array too.