Topic Path: Symbol Reference > Classes > TIdMessageParts Class > TIdMessageParts Methods > Add Method
TIdMessageParts.Add Method

Adds a message part to the collection.

function Add: TIdMessagePart;

TIdMessagePart - Message part added to the collection.

Add is a TIdMessagePart function that is disabled for the collection. 

Add always returns Nil as the return value. Add is disabled to prevent adding the ancestor class TIdMessagePart to the collection. 

Use TIdText.Create and TIdAttachment.Create to add the new collection item to the collection identified by the Collection parameter.

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