FireDAC.Comp.DataSet.TFDAggregates.AggregateByName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AggregateByName(const AName: String): TFDAggregate;

C++

TFDAggregate* __fastcall AggregateByName(const System::UnicodeString AName);

Properties

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

Description

Finds the TFDAggregate object by its name and raises an exception if it is not found.

Use the AggregateByName method to find an aggregated value by its name. If the object is not found, AggregateByName raises an exception.

Example

Label1.Caption := VarToStr(FDQuery1.Aggregates.AggregateByName('a1').Value);

See Also