Equinox Online Help - Language Reference - A to Z

Home

ReplaceRecord

Applies to
SyntaxReplaceRecord
Action[Statement] Updates a record.
ScopeOnly usable in subtables.
Notes

This statement updates the current record. New field values may be assigned within the subtable block. Fields that are not assigned a value remain unchanged. If an error occurs, an error number is stored in the system workarea SysError.

CategoryRecord editing
See Also BlankRecord, DeleteRecord, FieldChanged, InsertRecord, IsField, ReplaceRecord
Example

This example applies a discount of 10% to all items in the current order. The ReplaceRecord statement is used to re-save each item record.

subtable item
FirstRecord

while Not syserror
ItemDiscount = ItemTotal * 0.1
ReplaceRecord
NextRecord
end while
end subtable | item