[Overview][Classes][Procedures and functions][Index] Reference for unit 'DBActns' (#lcl)

TDataSetDelete.UpdateTarget

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

Declaration

Source position: dbactns.pp line 99

public procedure TDataSetDelete.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, is not positioned at the beginning- or end-of-file, and contains True in its CanModify property. This ensures that the action cannot be performed for a dataset that has not been opened, or when the current record cannot be modified.


Version 4.0 Generated 2025-05-03 Home