getClass Method

Class: Object

Description

This method returns a string representation of the object type(class).

Syntax

objectName.getClass()

Parameters

None

Returns

The class name.

When Became Available

Profile v6.0

Example

type String CLASS

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

set CLASS = dep.getClass()

do DEPOSIT:CLASS=”RecordDEP”,LOAN:CLASS=”RecordLN”

 

* CID must be defined prior to the getRecord statement

* DEPOSIT and LOAN must be valid subroutines