Topic Path: Symbol Reference > Classes > TIdFTPListItems Class > TIdFTPListItems Methods > Add Method
ContentsIndexHome
PreviousUpNext
TIdFTPListItems.Add Method

Creates and adds a new entry in the structured directory listing collection.

function Add: TIdFTPListItem;

TIdFTPListItem - File or directory entry added to the collection.

Add is a TIdFTPListItem function used to create and add a new entry in the structured directory listing collection. 

Add calls the inherited method and ensures that the return value is cast to a TIdFTPListItem object instance. Use the Delete and Clear methods inherited from TIdCollection to maintain the Items in the collection. 

Add is used when the ListParserClass for the FTP client needs to make a new entry in the structured directory listing after calling its' ParseListing and ParseLine methods.

TIdFTPListItem 

TIdFTP.DirectoryListing 

TIdFTPListBase.MakeNewItem 

TIdFTPListBase.ParseListing 

TIdFTPListBase.ParseLine

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.