FireDAC.Comp.DataSet.TFDDataSet.CopyRecord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CopyRecord(ASource: TDataset);

C++

void __fastcall CopyRecord(Data::Db::TDataSet* ASource);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

Description

Copies all record fields from the source dataset to the Self dataset. Use the CopyRecord method to copy the current record field values from the ASource dataset to the Self dataset. The method copies all fields, for which the following requirements are met:

  • The names exist in both datasets.
  • The field in the Self dataset is not calculated.
  • The field in the Self dataset is not read-only.

It is important that fields with the same name in both datasets are compatible by data type. The CopyRecord method does not verify if fields are assignment compatible.

See Also