RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldValuesAdapter.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. Depending on the adapter field object, it may be supplied by the caller, or created by the adapter field object inside this method. 

ImplStartIterator returns true if it positions the ValueField field on its first value, false if the adapter field can't supply a first value.  

In TFieldValuesAdapter, ImplStartIterator obtains an IWebGetFieldValues interface for the adapter field that is the value of the Field property and calls its StartValueIterator method, passing on the value of the OwnerData parameter. 

 

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