Code: Select all
Haystack := "The Quick Brown Fox Jumps Over the Lazy Dog"
Needle := "Fox"
p1 := inStr(Haystack, Needle, false, +1) ; 17
p2 := inStr(Haystack, Needle, false, -1) ; 27 ★ ???
; If Occurrence is omitted, a negative StartingPos causes the search to be conducted from right to left.
msgBox p1 "`n" p2
Maybe something I misunderstood?