Module Tester
Sub Main()
Dim letters As String = "abcdefghijklmabcdefghijklm"
Dim searchLetters As Char() = New Char() {"c"c, "a"c, "$"c}
Console.WriteLine(letters.LastIndexOf("c"c))
Console.WriteLine(letters.LastIndexOf("a"c, 25))
Console.WriteLine(letters.LastIndexOf("$"c, 15, 5))
End Sub
End Module
15
13
-1