FireDAC.Comp.DataSet.TFDAggregates.AggregateByName

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function AggregateByName(const AName: String): TFDAggregate;

C++

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

Propriétés

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

Description

Recherche l'objet TFDAggregate par son nom et déclenche une exception s'il est introuvable.

Utilisez la méthode AggregateByName pour rechercher une valeur d'agrégation par son nom. Si l'objet est introuvable, AggregateByName déclenche une exception.

Exemple

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

Voir aussi