#### InStr

##### InStr(String a, String b)

This function returns the position of the first occurrence of one string within another. If String a is not found in String b, the InStr function will return -1.

Parameters

- a - A String value to be sought.
- b - A String value to be searched.

Return value

The return value is an Integer.

Examples

- The return value of the following statement is 6.

  `InStr("my", "he is my brother")`

- The return value of the following statement is -1.

  `InStr("our", "she is my mother")`

##### InStr(Number a, String b, String c)

This function returns the position of the first occurrence of one string within another, starting at the position specified by argument a. If String c is not found in String b, the InStr function will return -1.

Parameters

- a - A BigInt value that is the character position in String b where the search is to begin.
- b - A String value to be searched.
- c - A String value to be sought.

Return value

The return value is an Integer.

Examples

- The return value of the following statement is 6.

  `InStr(3, "he is my brother", "my")`

- The return value of the following statement is -1.

  `InStr(3, "he is my brother", "our")`