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
Return value
The return value is an Integer.
Examples
InStr("my", "he is my brother")
InStr("our", "she is my mother")
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
Return value
The return value is an Integer.
Examples
InStr(3, "he is my brother", "my")
InStr(3, "he is my brother", "our")