FireDAC.Comp.DataSet.TFDDataSet.EndBatch

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndBatch;

C++

void __fastcall EndBatch(void);

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

Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=FireDAC.Comp.DataSet.TFDDataSet.EndBatch&oldid=587450"