ItemIndex property

Applies to
TQDB, TQDBItem, TQDBView

Declaration
property ItemIndex : TItemIndex;

Description
The ItemIndex property holds the location in the index of the current item. Setting ItemIndex permits direct navigation of the database. Its value lies between 0 and (Count -1) and can be assigned to any intermediate value irrespective of the setting of the Filter property. Setting ItemIndex to a new value triggers the OnNavigate event.

N.B.: The ItemIndex of a particular item can change as other items are added to or deleted from the file so, in most circumstances, other navigation methods may be more appropriate, e.g., FirstItem, LastItem, NextItem, PrevItem, or the search methods CloseMatch, ExactMatch, PartialMatch and PatternMatch.

Run-time only