IndexOf in the documentation

The example does not use a start position. Now I know how it works, but the documentation does not explain AND do not say how to make a search in a loop.

Funny: I just read my reference code and I used this way to call .IndexOf(), and because Xojo didn’t complain I do not noticed what I’ve done !

Issue ?

IndexOf (item As DataType, Optional startIndex As Integer) As Integer

The startindex is clearly optional. Also as with most things, you can call it as

dim x as string()
...
dim i as integer = x.IndexOf("abc")
// or
dim i as integer = IndexOf(x, "abc")

Just different syntax to get the same result, The docs may favor one over the other.