RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSmallIntArray.Items Property

Lists the elements in the array.

Pascal
property Items [Index:Integer]: SmallInt;
C++
__property SmallInt Items[int Index];

Use Items to read or set the value of the element indicated by the Index parameter, where 0 specifies the first element in the array, 1 specifies the second parameter, and so on.

Note: In Delphi code, Items is the default property for TSmallIntArray, which means the name of the Items property need not be included when using it. Thus, the line

FirstInt := SmallIntArray1.Items[0];

Note: can be written

FirstInt := SmallIntArray1[0].

 

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