Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDataLink.Edit

Set the dataset in edit mode, if possible.

Declaration

Source position: db.pas line 2049

public function TDataLink.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 TDatasource.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

TDatasource

  

Component representing the link between a local (GUI) component and a dataset.

TDatalink.Datasource

  

Datasource this datalink is connected to.

TDatasource.Edit

  

Put the dataset in edit mode, if needed.

TDatasource.AutoEdit

  

Should the dataset be put in edit mode automatically.


Documentation generated on: Dec 22 2024