title: vb.net get the index of the current position in an array
body: <p>I have this <code>Dim transactionArray As String()()</code> with full of data and two or more elements have the same value.</p>
  
  <p>When I want to search through the the array to find something, I have:</p>
  
  <pre><code>  For Each tempString As String In transactionArray(tempInt1)
       If tempString.Contains(searchText) Then
          MessageBox.Show("Found It")
       End If
    Next
  </code></pre>
  
  <p>Now how would I get the current index? Since I have multiple elemets with the same value, I am guessing that I cannot use <code>Array.IndexOf</code></p>