Functions - Instr


Returns an Integer giving the position of the first occurrence of one string within another. If the string cannot be found the function returns 0.

Syntax

Instr(source, search)

Parameters

sourceThe string being searched.
searchThe searched for string.

Example

This expression part evaluates to 3:

Instr("FooBar", "oB")