Datasnap.DBClient.TCustomClientDataSet.KeyFieldCount

提供: RAD Studio API Documentation
2011年10月18日 (火) 12:17時点におけるPyBot (トーク | 投稿記録)による版 (Scoping Libraries)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Delphi

property KeyFieldCount: Integer read GetKeyFieldCount write SetKeyFieldCount;

C++

__property int KeyFieldCount = {read=GetKeyFieldCount, write=SetKeyFieldCount, nodefault};

プロパティ

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

説明

部分キーを使って複数項目キー検索を行うとき,使用する項目の数を指定します。

KeyFieldCount プロパティを使用すると,複数項目キーに基づく検索に使用する項目をそれらの項目の連続するサブセットに限定できます。たとえば,データセットの主キーが 3 つの項目からなるとき,KeyFieldCount を 1 に設定すると,1 番めのキー項目を使って部分キー検索が行われます。KeyFieldCount が 0 の場合,クライアントデータセットはすべてのキー項目に基づいて検索を行います。

メモ:  検索は,1 番めの項目で始まる連続するキー項目に対してのみ行われます。たとえばキーが 3 項目からなる場合,KeyFieldCount に 1 を設定すると 1 番めの項目,2 を設定すると 1 番めと 2 番めの項目,3 を設定すると全項目に基づいて検索が行われます。デフォルトでは,KeyFieldCount は,全項目を含む検索を指定する 0 が設定されています。

関連項目

https://docwiki.embarcadero.com/Libraries/Tokyo/j/index.php?title=Datasnap.DBClient.TCustomClientDataSet.KeyFieldCount&oldid=156734」から取得