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
Return value
The return value is an Integer.
Examples
LastIndexOf("avcievmgbvi","v")
LastIndexOf("avcievmgbvi","n")
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
Return value
The return value is an Integer.