The STRING data type as class / STRING data type methods |
Returns a sub-string according to start and end positions.
subString( start INTEGER, end INTEGER ) RETURNING result STRING
This method returns a sub-string of the current STRING variable according to a start and end position in the original string.
If the STRING variable is NULL, or when the positions are out of bounds, the method returns NULL.
MAIN DEFINE s STRING LET s = "Some text" DISPLAY s.subString(6,9) END MAIN