Equinox Online Help - Language Reference - A to Z
ReplaceRecord |
|
|---|---|
| Applies to | ![]() |
| Syntax | ReplaceRecord |
| Action | [Statement] Updates a record. |
| Scope | Only 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. |
| Category | Record 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 itemFirstRecordend subtable | item |
