RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLocateParamsList.ItemByAdapterName Method

Returns the TLocateParams object associated with a specified dataset adapter.

Pascal
function ItemByAdapterName(const AName: string): TLocateParams;
C++
__fastcall TLocateParams ItemByAdapterName(const AnsiString AName);

Call ItemByAdapterName to access the list of key fields and values for a specified dataset adapter. ItemByAdapterName searches the Items property array for an item whose AdapterName property matches the specified name. 

AName is the name of the dataset adapter whose key fields you want to access. This is the same as the Name property of the TDataSetAdapter object and the AdapterName property of the TLocateParams object that holds its key fields and values. 

ItemByAdapterName returns the TLocateParams object for the specified adapter. If this TLocateParamsList object does not include an item for the specified adapter, ItemByAdapterName returns nil (Delphi) or NULL (C++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!