toString Method

Class: Object

Description

This method returns a generic string representation of an object. This method copies the attributes of the object into a string. Every class should provide its own implementation of the toString( ) method, so that it can provide an appropriate string representation.

Syntax

objectName.toString()

Parameters

None

Returns

A String.

When Became Available

Profile v6.0

Example

type String STRING

type RecordDEP dep = Db.getRecord(“DEP”,”CID=:CID”)

set STRING = dep.toString()

 

* Variable CID must be defined prior to the getRecord statement.