indexOf Method
Purpose:
Returns the position of a substring in a string variable.
Syntax:
.indexof(substring)
Comments:
Returns the zero based index within the string for the first occurrence of the speificed substring. Returns -1 if substring is not found.
Example:
abc = "def"
p abc.indexOf("e")
1
lab = Label("ABC",800,20,100,50)
lab = Label("ABC",800,20,100,50)