FireDAC.Comp.DataSet.TFDDataSet.EndBatch

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

C++

void __fastcall EndBatch();

Description

Restores regular dataset functionality after batch updates.

Use the EndBatch method to re-enable regular dataset processing as it was before the BeginBatch call.

Example

FDQuery1.BeginBatch;
try
  FDQuery1.AppendRecord([...]);
  FDQuery1.AppendRecord([...]);
  FDQuery1.AppendRecord([...]);
  ......
finally
  FDQuery1.EndBatch;
end;

See Also