The StringBuffer class / base.StringBuffer methods |
Removes trailing blanks.
trimRight()
The trimRight() method removes the trailing blanks in the string buffer.
CALL buf.append(" abc ") CALL buf.trimRight() DISPLAY "["||buf.toString()||"]" -- Shows [ abc]