Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I would like to use the FindIndex function of Array but I cant seem to get it to work.
My array is a string array, I don't know if this is a problem.
I have tried numerous iterations but have not had any success.
Could someone please help me to get this working, or confirm if this can work with a string array?
Here is my basic non functioning test code:
Dim oTest As String = "D"
Dim oList() As String = {"0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" } 'NEW STRING START AT 0
Dim xx As Integer = Array.FindIndex(oList, oTest)
messagebox.Show(xx, "xx")
Solved! Go to Solution.