InStr
Returns the position of the first occurrence of one string within another.
Structure
InStr(string1, string2)
Parameters
string1 - Required. String expression being searched.
string2 - Required. String expression being searched for.
Return Value
The InStr function returns the position of string1 within string2
Example
iReturn = InStr("0123456789", "8")
ShowMessage(IntToStr(iReturn))
' the above returns 9 |