FireDAC.Comp.DataSet.TFDAggregates.AggregateByName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDAggregates

Delphi

function AggregateByName(const AName: String): TFDAggregate;

C++

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

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