FireDAC.Comp.DataSet.TFDAggregates.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add: TFDAggregate;

C++

HIDESBASE TFDAggregate* __fastcall Add();

Properties

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

Description

Appends a new TFDAggregate object to a collection.

Call the Add method to add a new empty TFDAggregate object to a collection.

Example

with FDQuery1.Aggregates.Add do begin
  Name := 'a1';
  Expression := 'count(*)';
  Active := True;
end;

See Also