Whitespace

The following guidelines apply to whitespace:

Example

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

type String TYPE = dep.type

type Number JOB = %ProcessID

type RecordTEST tmp

 

if 'Db.isDefined("TEST","JOB = :JOB, TYPE = :TYPE") do {

      set tmp = Class.new("RecordTEST")

      set tmp.job  = %ProcessID

      set tmp.type = dep.type

}

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

 

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

do tmp.save()

 

*CID must be defined prior to the getRecord statement.