getTableName Method

 

This method has been deprecated and should not be used in Profile versions v6.4 and above.

Class: Schema

Description

This method returns the name of the table of a Record Class.

Syntax

Schema.getTableName(String className)

Parameters

className

 

Returns

String containing a table name.

When Became Available

Profile v7.0

Example

new dep,tmp

do Schema.createTable("TEST",""TEST",JOB,TYPE","TOTBAL","ZTMP")

 

type RecordDEP dep = Db.getRecord("DEP","CID")

type RecordTEST tmp

 

set TYPE = dep.type

set JOB = %ProcessID

if ‘Db.isDefined("TEST","JOB,TYPE")

set tmp = Class.new("RecordTEST")

else

set tmp = Db.getRecord("TEST","JOB,TYPE")

set tmp.job = %ProcessID

set tmp.type = dep.type

set tmp.totbal = tmp.totbal + dep.bal

do tmp.save()

 

do Schema.deleteTable("TEST")