RInStr

Position = RInStr ( String , Substring [ , Start ] )

Returns the position of the last occurrence of Substring in String. If Start is specified, the search stops at the position Start.

If the substring is not found, RInStr() returns zero.


Examples

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

11

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

0