# InStr

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.

Examples

    PRINT Instr("Gambas is basic", "bas")

    4

    PRINT Instr("Gambas is basic", "bas", 5)

    11

    PRINT Instr("Gambas is basic", "not")

    0

See Also

Len, Left$, LIKE, Mid$, Right$

Previous: INPUT Next: Int