Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageCollection.Messages Property

Provides indexed access to a message item in the collection.

Pascal
property Messages [index: Integer]: TIdMessage;

Messages is an Integer indexed TIdMessage property that provides access to the TIdMessage contained in a collection item. Index values must be in the range 0 to Count-1. 

Messages is the default property for the collection. 

The following statements are equivalent, and return the same TIdMessage instance from the collection: 

 

   // AMailbox: TIdMailbox
   MAgent.RenderPreview(AMailbox.MessageList.Messages[i]);
   MAgent.RenderPreview(AMailbox.MessageList[i]);

TIdMessage 

TIdMessageItem 

TIdMailbox.MessageList

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.