Class: Record
Description
This method informs the compiler that the object can only be used to update a record. When you use this method, the compiler generates code around the save and bypassSave methods that will return a runtime error if an attempt is made to create a record rather than update it.
Syntax
objectName.setUpdateOnly()
Parameters
None
Returns
None
When Became Available
Profile v6.0
Example
type Number AMT,CID
type String BOO
set AMT = 100.00
set CID=100000034
set BOO = 10
type RecordDEP dep=Db.getRecord(“DEP”,”:CID”)
do dep.setUpdateOnly()
do dep.setAuditFlag(1)
set dep.bal=dep.bal+AMT
set dep.boo=BOO
do dep.save() // Call DEP filer
do dep.save(“/NOJOURNAL”) // Save with qualifier