| The STRING data type as class / STRING data type methods | |
Returns the position of a sub-string.
getIndexOf( string STRING, start INTEGER ) RETURNING result INTEGER
This method scans a STRING variable to find the sub-string passed as parameter, and returns the position of the sub-string.
The method starts to search the sub-string at the starting position specified as second parameter.
MAIN
DEFINE s STRING
LET s = "Some text"
DISPLAY s.getIndexOf("text",1)
END MAIN