FireDAC.Phys.SQLiteVDataSet.TFDLocalSQL.OnOpenDataSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnOpenDataSet: TFDOpenDatasetEvent read FOnOpenDataSet write FOnOpenDataSet;

C++

__property OnOpenDataSet;

Properties

Type Visibility Source Unit Parent
event published
FireDAC.Phys.SQLiteVDataSet.pas
FireDAC.Phys.SQLiteVDataSet.hpp
FireDAC.Phys.SQLiteVDataSet TFDLocalSQL

Description

The event that fires before the Local SQL creates a cursor for a dataset to perform the SQL statement.

Use the OnOpenDataSet event handler to set up a dataset object before usage.

The OnCloseDataSet event is fired when the dataset has no more active cursors.

You can use this event to set parameter or macro values, or even to change the SQL command text. If a dataset is inactive, then Local SQL will activate it right after the event handler call.

See Also