FireDAC.Comp.Client.TFDGetDatasetEvent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
type
typedef
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: FireDAC.Comp.Client

Delphi

TFDGetDatasetEvent = procedure (ASender: TObject; const ASchemaName, AName: String;
var ADataSet: TDataSet; var AOwned: Boolean) of object;

C++

typedef void __fastcall (__closure *TFDGetDatasetEvent)(System::TObject* ASender, const System::UnicodeString ASchemaName, const System::UnicodeString AName, Data::Db::TDataSet* &ADataSet, bool &AOwned);

Description

TFDGetDatasetEvent is the function type for an OnGetDataSet event.

TFDGetDatasetEvent has the following parameters:

Parameter Meaning

ASender

The reference to the dataset.

AName

The dataset name.

ADataSet

The dataset that the event handler returns.

AAdapter

The Dataset adapter that the event handler returns. The event handler must return ADataSet, AAdapter, or both arguments assigned.
For FireDAC datasets, only ADataSet can be assigned. For non-FireDAC datasets, we recommend that you assign both arguments.

See Also