RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IIteratorIndex.IteratorIndex Property

Indicates the index of the current item.

Pascal
property IteratorIndex: Integer;
C++
__property int IteratorIndex;

IteratorIndex indicates the index of the current item when the object is iterating over its items. When IteratorIndex is 0, the object is positioned on its first item; When IteratorIndex is 1, the object is positioned on its second item, and so on. 

When the object is not iterating over its items (when the InIterator method returns false), the value of IteratorIndex is undefined. 

 

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