Instr

Category: Strings

Back to System Functions


Signature

Instr(text As String, searchFor As String, offset As Integer)

Returns

Integer

Description

Searches for one string inside another beginning at a 1-based offset.

Returns 0 when the search string is not found.

Example

spacePos = Instr("Hello World", " ", 1)