Internet Direct (Indy)
Home
PreviousUpNext
TIdFSPListItems.IndexOf Method

Locates a specific collection item object instance in the collection.

Pascal
function IndexOf(
    AItem: TIdFSPListItem
): Integer;
Parameters 
Description 
AItem 
Item to locate in the collection. 

Integer - Ordinal position of the object instance in the collection.

IndexOf is an Integer function used to locate a specific TIdFSPListItem object instance in the Items for the collection. 

AItem is the collection item to locate in the container. 

The return value for the method is the zero-based ordinal position of the collection item, or -1 when AItem does not exist in the Items for the collection. The return value is determined by iterating over all of the Items in the collection until a match is found. 

Use Items to access the entries in the collection by their ordinal position.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.