RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractFieldValuesAdapter.ImplStartIterator Method

Provides the underlying implementation for the StartIterator method.

Pascal
function ImplStartIterator(var OwnerData: Pointer): Boolean; override;
C++
virtual __fastcall Boolean ImplStartIterator(void * OwnerData);

The StartIterator method calls ImplStartIterator to start the process of iterating through the adapter's field's possible values. The return value indicates whether the adapter's field has any values over which to iterate.  

OwnerData is a pointer to adapter-specific data that can affect the way it iterates over field values. Each adapter can interpret this value in its own way. Depending on the adapter, it may be supplied by the caller, or created by the ImplStartIterator method. 

In TAbstractFieldValuesAdapter, ImplNextIteration always returns false, because TAbstractFieldValuesAdapter does not implement support for obtaining any field values. Descendant classes that override this method to check whether they can move to the first value in the field's set of values. If so, they move to the first value and return true. Otherwise they return false. 

 

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