How would I find the index of an item in the string array in the following code:
Dim arrayofitems() as String
Dim itemindex as UInteger
itemindex = arrayofitems.IndexOf("item test")
Dim itemname as String = arrayofitems(itemindex)
I’d like to know how I would find the index of an item in a string array. (All of the items are lowercase, so case shouldn’t matter.)
It’s a static (
Shared) method on theArrayclass that accepts the actual array as the first parameter, as:MSDN page