Sign in Join
FPDoc Onlineexperiment

TDataLink.Edit function

Member of TDataLinkpublicIn unit DB

Set the dataset in edit mode, if possible.

Declaration

pascal
function Edit: Boolean

Function result

True if the dataset is ready for editing.

Description

Edit attempts to put the dataset in edit mode. It returns True if this operation succeeded, False if not. To this end, it calls the Edit method of the DataSource to which the datalink instance is coupled. If the AutoEdit property is False then this operation will not succeed, unless the dataset is already in edit mode. GUI controls should always respect the result of this function, and not allow the user to edit data if this function returned false.

See also

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