title: VB6 Finding a combobox listindex based off of a specific string
body: <p>I have a combobox with many items on the list. I just need to find the index of a specific string and have the combobox change to that index. I have a query that returns a result as string.</p>
  
  <pre><code> Function FindComboIndex(cmbDealerName,result)
  
   For int i = 0 to cmbDealerName.ListItems.Count
  
   If result = cmbdealername.ListItem(i).Text Then
  
   cmbdealername.listindex = i
  
   End if
  
   Next i
  
   End function
  </code></pre>
  
  <p>Something like this, i just need the right syntax</p>