FireDAC.Comp.DataSet.TFDAggregates.FindAggregate

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function FindAggregate(const AName: String): TFDAggregate;

C++

TFDAggregate* __fastcall FindAggregate(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 un objet TFDAggregate par son nom.

Utilisez la méthode FindAggregate pour rechercher une valeur d'agrégation par son nom. Si l'objet est introuvable, FindAggregate renvoie nil.

Exemple

 var
   oAgg: TFDAggregate;
 ...
 oAgg := FDQuery1.Aggregates.FindAggregate('a1');
 if oAgg <> nil then
   Label1.Caption := VarToStr(oAgg.Value);

Voir aussi