Topic Path: Symbol Reference > Classes > TIdEMailAddressList Class > TIdEMailAddressList Methods > AddItems Method
ContentsIndexHome
PreviousUpNext
TIdEMailAddressList.AddItems Method

Appends an existing collection of email addresses to the current collection.

procedure AddItems(
    AList: TIdEMailAddressList
);
Parameters 
Description 
AList 
An exisiting collection of email addresses to append to the current collection. 

AddItems is a method used to append an existing collection of email addresses to the current collection. AList represents the collection with TIdEmailAddressItem instances to append to the current collection items. When AList is empty (when the collection Count in AList contains 0), no action is performed. 

AddItems iterates over the TIdEmailAddressItem instances in the AList collection, and creates a item in the current collection by calling the Add method. The value of the new collection item is set by calling Assign using the collection item in AList as an argument. 

Use methods in the ancestor class to maintain Items in the collection, like Delete, Clear, or Destroy.

TIdEmailAddressItem

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