Bde.DBTables.TUpdateSQL.Apply

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Apply(UpdateKind: TUpdateKind); overload; override;
procedure Apply(ADataset: TDataset; UpdateKind: TUpdateKind); reintroduce; overload;

C++

virtual void __fastcall Apply(Data::Db::TUpdateKind UpdateKind)/* overload */;
HIDESBASE void __fastcall Apply(Data::Db::TDataSet* ADataset, Data::Db::TUpdateKind UpdateKind)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TUpdateSQL

Description

Sets the parameters for a specified SQL statement type, and executes the resulting statement.

Call Apply to set parameters for an SQL statement and execute it to update a record. UpdateKind indicates which SQL statement to bind and execute, and can be one of the following values:



Value Meaning

ukDelete

Bind and execute the SQL statement in the DeleteSQL property

ukInsert

Bind and execute the SQL statement in the InsertSQL property

ukModify

Bind and execute the SQL statement in the ModifySQL property



Apply is primarily intended for manually executing update statements from an OnUpdateRecord event handler.

Note: If an SQL statement does not contain parameters, it is more efficient to call ExecSQL instead of Apply.

See Also