I would like to display index together with the string. This is what I have tried.
Dim strA As String = "Bell-in-hospital"
Dim i As Integer = 1
Dim arrayList() As String = strA.Split({" - "}, StringSplitOptions.RemoveEmptyEntries)
For index As Integer = 0 To arrayList.Length - 1
MsgBox("location:" & arrayList(index) & arrayList.ToString())
index += 1
Next
Now, I'm stuck at For each on how can I display the index together with content. Thanks for the help.
For index As Integer = 0 To arrayList.Length - 1?