8.5 Instr(start As Integer, text As String, substring As String) As Integer
Returns the position of the first instances of substring within text, starting at the specified start position. Returns 0 if the substring is not found. The first position is 1.
So anything greater than zero means the string was found:
if Instr(str, "xyz") > 0 then
Found()
else
NotFound()
end if
The stringops version works the same except indexes are zero-based so -1 is the "not found" case:
if str.Instr("xyz") >= 0 then
Found()
else
NotFound()
end if
--Mark