[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBCtrls' (#lcl)

# TFieldDataLink.Edit

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

## Declaration

Source position: dbctrls.pp line 79

`public function TFieldDataLink.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

TFieldDataLink.CanModify |  | True if the linked field is capable of being modified.
TDataLink.DataSource
TDataLink.Edit
TDataSource.Edit