Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21264

How to search string in 2 dimensional array

$
0
0
Dear All,

I have 2 dimensional array as follow:

aAnimal(0,1) = "Crap"
aAnimal(0,2) = "Fish"
aAnimal(0,3) = "Turtle"
aAnimal(1,1) = "Chicken"
aAnimal(1,2) = "Bird"
aAnimal(1,3) = "Butterfly"

How to fast search item? .. for example.. I want to search "Turtle" .. so I get 0 as its row or index

could any body please help?

Thanks & Regards

Viewing all articles
Browse latest Browse all 21264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>