Your question, your audience. Choose who sees your identity—and your question—with question security.
Sub Main()
Dim Test As String = "test example"
Dim test_arr As String()
test_arr = Split(Test, " ")
Console.WriteLine("Index : " & Test.IndexOf("example"))
Console.WriteLine("Word : " & test_arr.ToList().IndexOf("example") + 1)
Console.ReadLine()
End Sub
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Join the community of 500,000 technology professionals and ask your questions.