RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLocateParams.Items Property

Lists the key field names and values in this collection.

Pascal
property Items [I: Integer]: string;
C++
__property AnsiString Items[int I];

Use Items to obtain a key field name and value entry from the list. Each item is a string of the form 'Name=Value', where 'Name' is the name of a key field and 'Value' is its value on the identified record.  

I is the index of the key field and value, where 0 specifies the first item, 1 specifies the second item, and so on. The Count property gives an upper bound for this index.

Note: In Delphi, items is the default property of TLocateParams. That means the property name may be omitted in code. For example, the lines
Note: List := DataSetAdapter1.LocateParams[0];
Note: Param := List.Items[0];
Note: can also be written
Note: List := DataSetAdapter1.LocateParams[0];
Note: Param := List[0];
Note: Items provides indexed access to the entire 'Name=Value' string. To access just the key field name or just the value, use the ParamNames or ParamValues property instead.
 

 

Count 

ParamNames 

ParamValues 

operator_sb

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!