The STRING data type as class / STRING data type methods |
Removes trailing blanks.
trimRight( ) RETURNING result STRING
This method deletes the white space characters after the last character of the current STRING variable and returns the resulting string.
If the original STRING variable is NULL, the result will be NULL.
MAIN DEFINE s STRING LET s = "Some text " DISPLAY s.trimRight() END MAIN