StrIndexOf
Reports the index of the first occurrence of a source string, beginning from 1.
SYNTAX
|
StrIndexOf(searchString, sourceString, startIndex, ignoreCase)
|
ARGUMENTS
|
searchString
|
The string to search for
|
sourceString
|
The source string beginning from 1
|
startIndex
|
The search starting position
|
ignoreCase
|
TRUE = Case is ignored during the search
FALSE = Case is included in the search
|
|
RETURN
|
The index position, beginning from 1, of the value parameter if that string exists, or -1 if it does not exist.
|
EXAMPLE
|
retvalue = StrIndexOf("m","animal",2,true)
if(retvalue <> 4)
Raise("Error", "StrCompare() The result should be 4 but it is " + retvalue)
end-if
|