base.StringBuffer.trimRight

Removes trailing blanc characters.

Syntax

trimRight()

Usage

The trimRight() method removes the trailing blanc characters in the string buffer.

Example

MAIN
   DEFINE buf base.StringBuffer
   LET buf = base.StringBuffer.create()
   CALL buf.append("  abc  ")
   CALL buf.trimRight()
   DISPLAY "["||buf.toString()||"]" -- Shows [  abc]
END MAIN