FireDAC.Comp.DataSet.TFDDataSet.EndBatch

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndBatch;

C++

void __fastcall EndBatch();

Properties

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

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