Instr Function

  • Updated

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

Syntax

 

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

 

Instr(string, findString)

 

 

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.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.