Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageParts.CountParts
Determines the number of specific message parts in the collection.

procedure CountParts;
Description
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 will raise an EIdTextInvalidCount exception if the TextPartCount is equal to 1.