ArcBasicDocs

Instr

Position of find$ in string$ (0 if absent).

Instr ( string$,find$[,offset] )

Parameters

string$
the text to search.
find$
the text to look for.
offset (optional)
where to start looking, counting from 1. Defaults to 1.

Description

Gives back where one piece of text first appears in a string, counting from 1, or 0 if it isn't there. Instr("ArcBasic", "Basic") is 4. Capitals must match.

See also