StrIndexOf
Previous Top Next

Returns the index of the first letter in the matching string, starting from a given index.
If the matching string isn't found then it will return -1.
Syntax: StrIndexOf (String, Value, StartIndex)
Value is the string that is searched in String.

Example:
Msgbox (StrIndexOf  ("abcdef" , "cd",0))
Result : Displays 2.

Example:
Msgbox (StrIndexOf ("abcdef" , "ab",1))
Result: Displays -1 (not found)