you need the start position parameter event though its got a default
This works
i = sEventDesc.IndexOf(0,“Petitioned”, ComparisonOptions.CaseInsensitive)
you could add your own extensions of string and make it so your initial usage just worked
function indexof(extends source as string, strToFind as string, options As ComparisonOptions = ComparisonOptions.CaseInsensitive, locale as Locale = nil) As Integer
and this one internally might just do
return String.IndexOf(0, strToFind As String, options , locale )