[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)

TDataSet.Edit

Set the dataset in editing mode.

Declaration

Source position: db.pas line 1687

public procedure TDataSet.Edit;

Description

Edit will set the dataset in edit mode: the contents of the current record can then be changed. This action will call the TDataset.BeforeEdit and TDataset.AfterEdit events. If the dataset was already in insert or edit mode, nothing will happen (the events will also not be triggered). If the dataset is empty, this action will execute TDataset.Append instead.

Errors

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

See also

TDataset.State

  

Current operational state of the dataset

TDataset.EOF

  

Indicates whether the last record has been reached.

TDataset.BOF

  

Is the cursor at the beginning of the data (on the first record)

TDataset.Append

  

Append a new record to the data

TDataset.BeforeEdit

  

Event triggered before the dataset is put in edit mode.

TDataset.AfterEdit

  

Event triggered after the dataset is put in edit mode.


Documentation generated on: May 14 2021