Module Tester Sub Main() Dim letters As String = "abcdefghijklmabcdefghijklm" Dim searchLetters As Char() = New Char() {"c"c, "a"c, "$"c} Console.WriteLine(letters.IndexOf("c"c)) Console.WriteLine(letters.IndexOf("a"c, 1)) Console.WriteLine(letters.IndexOf("$"c, 3, 5)) End Sub ' Main End Module ' modIndexMethods
2 13 -1