Siebel eScript Language Reference > Siebel eScript Commands > Buffer Object Methods >

toString() Method


This method returns a string containing the same data as the buffer.

Syntax

bufferVar.toString()

Parameter
Description

Not applicable

 

Returns

A string object that contains the same data as the buffer object.

Usage

This method returns a string whose contents are the same as that of bufferVar. Any conversion to or from Unicode is done according to the unicode flag of the object.

Example

try
{
   do_something;
}
catch( e )
{
   TheApplication().RaiseErrorText(Clib.rsprintf(
      "Something bad happened: %s\n",e.toString()));
}

Siebel eScript Language Reference