FireDAC.Comp.DataSet.TFDDataSet.CopyRecord

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDDataSet

Delphi

procedure CopyRecord(ASource: TDataset);

C++

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

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