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

Adds new message items to the collection.

function Add: TIdMessageItem;

TIdMessageItem - new collection item added to the collection.

Add is an overridden TIdMessageItem function that creates new items in the collection. 

Add ensures that collection items are cast to a TIdMessageItem instance after calling the inherited Add method. 

The return value for the method is the TIdMessageItem added to the collection.

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