Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageParts.CountParts Method

Determines the number of specific message parts in the collection.

Pascal
procedure CountParts;

CountParts is procedure that determines the number of specific message parts in the collection, and updates the TextPartCount, AttachmentCount, and RelatedPartCount properties to indicate the calculated values. 

CountParts is used during generation of headers for a mail message prior to transmission in TIdMessage.GenerateHeader. You can force an update to these values prior to transmission (or on receipt) by calling CountParts.

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.