CurrentRecordIsUpdated (System function)
Is the current record updated? (System class)
[Introduced in Sirius Mods 7.7]
The CurrentRecordIsUpdated is shared function which returns a Boolean value that indicates whether the current record in the current record-oriented loop has been updated in the current transaction.
%boolean = %(System):CurrentRecordIsUpdated
|%boolean||A Boolean enumeration value indicating whether the current record has been updated.|
|%(System)||The class name in parentheses denotes a shared method.|
- CurrentRecordIsUpdated is available in Sirius Mods Version 7.7 and later.
The following request fragment sketches a record updating loop that reports to the audit trail if this is an initial update for each record in the transaction:
%recs is object recordset in file myfile %rec is object record in file myfile fd to %recs end find for each record in %recs %rec = CurrentRecord if %(system):currentRecordIsUpdated ne true then audit 'First update of Record num: ' %rec:RecordNumber end if ... end for
- RecordIsUpdated reports whether a record you identify by filename and record number has been updated within the current transaction.
- IsUpdated reports whether a record referenced by a Record object has been updated within the current transaction.