Sign in Join
FPDoc Onlineexperiment

TDataSource.Edit procedure

Member of TDataSourcepublicIn unit DB

Put the dataset in edit mode, if needed.

Declaration

pascal
procedure Edit

Description

Edit will check AutoEdit: if it is True, then it puts the Dataset it is connected to in edit mode, if it was in browse mode. If AutoEdit is False, then nothing happens. Application or component code that deals with GUI development should always attempt to set a dataset in edit mode through this method instead of calling Edit directly.

Errors

An EDatabaseError exception can occur if the dataset is read-only or fails to set itself in edit mode. (e.g. unidirectional datasets).

See also

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