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

Determines the number of specific message parts in the collection.

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.

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