FireDAC.Comp.Client.TFDCustomMemTable.AppendData
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
Unit: FireDAC.Comp.Client | |
Parent: TFDCustomMemTable |
Delphi
procedure AppendData(const AData: IFDDataSetReference; AHitEOF: Boolean = True);
C++
void __fastcall AppendData(const Firedac::Comp::Dataset::_di_IFDDataSetReference AData, bool AHitEOF = true);
Description
Appends data to this dataset from other datasets.
Use the AppendData method to append the rows from one FireDAC dataset to this dataset. The property is a shortcut for the Data property and the CopyDataSet method.
If this dataset is inactive, then it inherits the structure from AData
, gets activated and rows are appended. When this dataset is active, then rows are imported and only compatible fields are filled.
The property is for the TClientDataSet compatibility.
Example
FDQuery1.Connection := FDConnection1;
FDQuery1.Open('select * from [Orders]');
FDMemTable1.AppendData(FDQuery1);
FDQuery2.Connection := FDConnection2;
FDQuery2.Open('select * from "Orders"');
FDMemTable1.AppendData(FDQuery2);