Sign in Join
FPDoc Onlineexperiment

TDataSet.Delete procedure

Member of TDataSetpublicIn unit DB

Delete the current record.

Declaration

pascal
procedure Delete; virtual

Description

Delete will delete the current record. This action will trigger the BeforeDelete, BeforeScroll, AfterDelete and AfterScroll events. If the dataset was in edit mode, the edits will be canceled before the delete operation starts.

Errors

If the dataset is empty or read-only, then an EDatabaseError exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.