[Overview][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TDataSetDelete deletes the current record in the DataSet.
Source position: dbactns.pp line 96
type TDataSetDelete = class(TDataSetAction) |
||
public |
||
procedure ExecuteTarget(); override; |
|
Retrieves the dataset for the target datasource and calls its Delete method. |
procedure UpdateTarget(); override; |
|
Enables or disables the action based on the state of the dataset in the target. |
published |
||
property DataSource: TDataSource; |
|
DataSource with the dataset for the action. |
end; |
|
TDataSetDelete deletes the current record in the DataSet. |
|
| | ||
|
TDataSetAction is the base class for all other standard TDataSet actions. |
|
| | ||
|
TAction is the basic action object used in the LCL. |
|
| | ||
|
TCustomAction is the ancestor class for TAction. |
|
| | ||
|
Implements an Action class which has a category and parent action list. |
|
| | ||
| | ||
| | ||
| | ||
TDataSetDelete is a TDataSetAction descendant which deletes the current record in the dataset for the target DataSource.
Delete behavior is dependent on the underlying database engine. Datasets using the DBF engine simply mark a record for deletion; it is not physically removed until the database engine packs the storage structure. Other datasets, such SQL-based ones, may require that changes be committed before they are flushed to the database engine.
TDataSetDelete publishes the DataSource property which explicitly declares the target for the database action. The DataSource may be determined by examining a data-aware control which used the database action, and passed an an argument to the UpdateTarget and HandlesTarget methods.
|
TDataSetFirst moves to first record in the DataSet. |
|
|
TDataSetLast moves to last record in the DataSet. |
|
|
TDataSetNext moves to next record in the DataSet. |
|
|
TDataSetPrior moves to previous record in the DataSet. |
|
|
TDataSetRefresh refreshes the DataSet. |
|
|
TDataSetCancel cancels the current edit mode for a DataSet. |
|
|
TDataSetEdit edits the current record in the DataSet. |
|
|
TDataSetInsert inserts (appends) a new record into the DataSet. |
|
|
TDataSetPost posts changes for the current record to the DataSet. |
|
|
TDataSetAction is the base class for all other standard TDataSet actions. |
Version 3.2 | Generated 2024-02-25 | Home |