NumExpr may be any numeric expression. StrExpr1 and StrExpr2 may be any string expressions. If NumExpr > len(StrExpr1), or if StrExpr1 is null, or if StrExpr2 cannot be found, instr returns 0. If StrExpr2 is null, instr returns NumExpr (or 1 if NumExpr is not specified).
x$ = "Basmark Corporation" y$ = "rat" print instr(x$, y$); instr(16, x$, y$)produces
14 0since the first "rat" occurs at position 14 in string x$, and there is no "rat" at or after position 16.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber