Sign in Join
FPDoc Onlineexperiment

TDataSetEdit.UpdateTarget procedure

Member of TDataSetEditpublicIn unit DBActns

Enables or disables the action based on the state of the dataset in the target.

Declaration

pascal
procedure UpdateTarget(Target: TObject); override

Arguments

Target

DataSource object examined in the method.

Description

UpdateTarget is an overridden method which enables or disables the database action based on the state of the dataset in the Target object.

UpdateTarget calls the GetDataSet method to retrieve the dataset in the Target datasource. The action is Enabled when the dataset is active, contains True in its CanModify property, and the value in its State property is in the dsEditModes set. This ensures that the action cannot be performed for a dataset that has not been opened, has not been placed in edit mode, or the current record cannot be modified.

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