Skip to main content



Instr Function

The Instr function returns the position of the first occurrence of one string within another string.

Syntax​

Instr(string, findString)

The Instr function returns the position of the first occurrence of one string within another string.

Arguments​

string String - The string to be searched.

findString String - The string to find.

Remarks​

Example:

Instr("the quick brown fox", "quick"); // returns 4

Example:

Instr("the quick brown fox", "rabbit"); // returns -1