The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at INSTR.

Finds the first occurrence of textitem2 in textitem1.

 INSTR [[position,]] textitem1, textitem2  

The starting position is optional. Each text item can be a literal string, a constant preceded by a %, or the string returned by a macro function.

Directives Reference