Internet Direct (Indy) Version 9.0.1 Beta
TIdFTPListItems.IndexOf
Returns the position of a directory entry in the collection.

function IndexOf(AItem: TIdFTPListItem): Integer;
Parameters
AItem: TIdFTPListItem
Directory entry to be located in the collection.

Returns
Integer - Position of the item in the collection.

Description
IndexOf is an Integer function that returns the integer position of the directory entry specified in AItem in the Items for the collection. IndexOf will return a value in the range 0 to Count - 1, or -1 when Items does not contain a directory entry item that matches AItem.