inStr()

Returns position of substring in string. If no match, returns zero.

Syntax:
position = inStr( string , substring )
position = inStr( start , string , substring )

start
is an optional start value specifies where in the string to begin the search.

Example;
' sets n to 4
n = inStr( "sdlBasic", "Basic" )

See also rinStr() command.