Position = InStr ( String , Substring [ , Start ] )
Returns the position of the first occurrence of Substring in String. If Start is specified, the search begins at the position Start.
If the substring is not found, InStr() returns zero.
Example :
PRINT Instr("Gambas is basic", "bas") => 4 PRINT Instr("Gambas is basic", "bas", 5) => 11 PRINT Instr("Gambas is basic", "not") => 0