base.StringBuffer.toString()

toString() is used to convert the string buffer into a STRING value. This method is helpful in displaying the value stored in a StringBuffer object or passing it to a variable of the STRING data type. The method does not require any arguments.

Without this method it is impossible to use the value stored in this object in other 4GL expressions and statements.

Syntax:

stb.toString()

Usage example:

MAIN
   DEFINE stb base.StringBuffer
   LET stb = base.StringBuffer.create()
   CALL stb.append("  Text string  ")
   DISPLAY stb.toString()
END MAIN

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.