The StringBuffer class / base.StringBuffer methods |
Return the length of a string.
getLength() RETURNING result INTEGER
Use the getLength() method to return the number of characters in the current string buffer, including trailing spaces.
The length of an empty string buffer is 0.
CALL buf.append("abc") DISPLAY buf.getLength() -- Shows 3 -- append three spaces to the end of the string CALL buf.append(" ") DISPLAY buf.getLength() -- Shows 6