#### LastIndexOf

##### LastIndexOf(String a, String b)

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

Parameters

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

Return value

The return value is an Integer.

Examples

- The return value of the following statement is 9.

  `LastIndexOf("avcievmgbvi","v")`

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

  `LastIndexOf("avcievmgbvi","n")`

##### LastIndexOf(BigInt a, String b, String c)

This function returns the position within this string of the first occurrence of the specified substring, searching backward 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 end.
- b - A String value to be searched.
- c - A String value to be sought.

Return value

The return value is an Integer.