Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDataSet.Delete

Delete the current record.

Declaration

Source position: db.pas line 1906

public procedure TDataSet.Delete; virtual;

Description

Delete will delete the current record. This action will trigger the TDataset.BeforeDelete, TDataset.BeforeScroll, TDataset.AfterDelete and TDataset.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

TDataset.Cancel

  

Cancel the current editing operation.

TDataset.BeforeDelete

  

Event triggered before a Delete operation.

TDataset.BeforeScroll

  

Event triggered before the cursor changes position.

TDataset.AfterDelete

  

Event triggered after a successful Delete operation.

TDataset.AfterScroll

  

Event triggered after the cursor has changed position.


Documentation generated on: Nov 22 2024