[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'db' (#fcl)

TDataLink.Edit

Set the dataset in edit mode, if possible

Declaration

Source position: db.pas line 1772

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, inless 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: Nov 14 2015