Datasnap.DBClient.TAggregates.IndexOf

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function IndexOf(const DisplayName: string): Integer;

C++

int __fastcall IndexOf(const System::UnicodeString DisplayName);

プロパティ

種類 可視性 ソース ユニット
function public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TAggregates

説明

指定された名前を持つ TAggregate オブジェクトのインデックスを返します。

IndexOf メソッドを呼び出すと,Items プロパティ配列内の指定した TAggregate オブジェクトのインデックスを取得できます。DisplayName パラメータで,取得したい集計の AggregateName プロパティの値を指定します。指定した名前の集計が Items プロパティ配列内に存在しない場合,IndexOf は -1 を返します。

関連項目