Equinox Online Help - Language Reference - A to Z

Home

RestoreRecord

Applies to
SyntaxRestoreRecord
Action[Statement] Restores a record.
ScopeOnly usable in form methods, but not in subtables.
Notes

This statement restores the current record on a form and can only be used after the record has been edited or inserted by the user. This statement has the same effect as selecting the Restore option from the form's Record menu. If the form is not in edit/ insert mode, an error number is stored in the system workarea SysError.

CategoryRecord data entry
See Also Zoom, Find, FindText, GetFindValues, IsInsertMode, SaveRecord, SetFindValues, SetInsertMode, StartEdit, StartInsert, UpdateDisplay
Example

This method, attached to a Cancel button on a form, tests if the user is inserting or editing a record. If so, the record is restored.

If SysMode = EditMode, InsertMode Then RestoreRecord