base.StringBuffer.create()

To create a StringBuffer object, you must first declare it with a DEFINE statement and then create with the Create() method used in a LET statement. The Create() is a class method, it should be called with the name of the class used as a prefix.

 

DEFINE stb base.StringBuffer

LET stb = base.StringBuffer.Create()

 

The StringBuffer object cannot be referenced by such statements as LET or DISPLAY directly and it cannot take part in the input. To display its value or manipulate it in 4GL expressions, you should use the ToString() method described below. To assign a string to this object you should also use the Append() method and not the LET statement.