RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterSubComponent.NextIteration Method

Changes the current object to the next item that has a variable name.

Pascal
function NextIteration(var OwnerData: Pointer): Boolean;
C++
__fastcall Boolean NextIteration(void * OwnerData);

NextIteration is part of the support that allows server-side script to use an enumerator to iterate over all the child items in the collection. This method is called to move to the next item in the list. After a call to NextIteration, the GetCurrentObject method returns the next item in the VariablesInUse list. 

OwnerData is a pointer to object-specific information returned by the last call to the StartIterator or NextIteration method. TAdapterSubComponent does not use the OwnerData parameter. 

NextIteration returns true if it successfully moves to a new item, false if there was no addition item to which it could move. 

 

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