STRING.trimRight

Removes trailing blanks.

Syntax

trimRight( )
       RETURNING result STRING

Usage

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.

Example

MAIN
  DEFINE s STRING
  LET s = "Some text     "
  DISPLAY s.trimRight()
END MAIN