FireDAC.Comp.Client.TFDCustomMemTable.AppendData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AppendData(const AData: IFDDataSetReference; AHitEOF: Boolean = True);

C++

void __fastcall AppendData(const Firedac::Comp::Dataset::_di_IFDDataSetReference AData, bool AHitEOF = true);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomMemTable

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);

See Also