base.StringBuffer.toString

Create a STRING from the string buffer.

Syntax

toString()
  RETURNS STRING

Usage

The toString() method creates a STRING value from the current string buffer.

Use this method if you need to pass the string to another method or instruction that expects a STRING as parameter.

Example

MAIN
   DEFINE buf base.StringBuffer
   LET buf = base.StringBuffer.create()
   CALL buf.append("abc")
   DISPLAY buf.toString()
END MAIN
Output:
abc