InStr Function
Returns position of one string within another.
Syntax
InStr(string, searchString)
Parameters
- string
- Specify the string to search for.
- searchString
- Specify the string to search for.
Return Values
Returns the position of the search string if the location is found, otherwise -1.
See Also
Mid$
Instr Function Example
Integer pos
pos = InStr("abc", "b")