The STRING data type as class / STRING data type methods |
Returns the length of the current string.
getLength( ) RETURNING result INTEGER
This method counts the number of bytes or characters in a STRING variable.
If the STRING variable is NULL, the method returns zero.
MAIN DEFINE s STRING LET s = "Some text" DISPLAY s.getLength() END MAIN