Sign in Join
FPDoc Onlineexperiment

TFieldDataLink.Edit function

Member of TFieldDataLinkpublicIn unit DBCtrls

Edit - if the field can be modified, performs inherited Edit and shows editing status.

Declaration

pascal
function Edit: Boolean

Function result

True if the linked dataset is in an edit state.

Description

Edit is a Boolean function used to ensure that the field in the linked dataset can be modified. The return value is True when the DataSource is already in an edit state, or if it is successfully changed to an edit state. The return value is False if a dataset is not available, or not in a valid edit state.

Edit calls the inherited method when CanModify is True and the dataset is not already in an edit state. This causes the DataSource to call its Edit method.

See also

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