Equinox Online Help - Language Reference - A to Z

Home

DeleteRecord

Applies to
SyntaxDeleteRecord [ConfirmExpression]
Action[Statement] Deletes the current record.
ScopeUsable anywhere.
Notes

This statement deletes the current record. If the optional argument, ConfirmExpression, evaluates to True, then the confirmation dialog appears. It defaults to False if omitted.

After the statement is executed, the SysError system workarea may take one of the following values:

  • 0 The statement was executed successfully.
  • 1 An error occurred.
  • 2 The current record is locked by another user and so cannot be deleted.
CategoryRecord editing
See Also BlankRecord, FieldChanged, InsertRecord, IsField, ReplaceRecord
Example

This example, attached to a button's This Button event, deletes the current record.

if SysMode = ViewMode, NoMode then DeleteRecord true