FireDAC.Comp.DataSet.TFDAggregates.FindAggregate
Delphi
function FindAggregate(const AName: String): TFDAggregate;
C++
TFDAggregate* __fastcall FindAggregate(const System::UnicodeString AName);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDAggregates |
説明
TFDAggregate オブジェクトを名前で検索します。
FindAggregate メソッドを使用して、集計値を名前で検索することができます。オブジェクトが見つからなければ、FindAggregate は nil を返します。
例
var
oAgg: TFDAggregate;
...
oAgg := FDQuery1.Aggregates.FindAggregate('a1');
if oAgg <> nil then
Label1.Caption := VarToStr(oAgg.Value);