Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : TIdAttachment - Undeclared Identifier

www.cryer.info
Managed Newsgroup Archive

TIdAttachment - Undeclared Identifier

Subject:TIdAttachment - Undeclared Identifier
Posted by:"Gordon Waters" (nospam_gordon.waters@canberratimes.com.au)
Date:Thu, 3 Feb 2005 16:00:37

Hi All,

I am trying to use the following code to get the Name of an attachment in
D2005 & Indy10 , but D2005 complains that  TIdAttachment is an  Undeclared
Identifier.

What am I missing.


          for X := 0 to  IdMessage1.MessageParts.Count -1  do
            begin
                if ( IdMessage1.MessageParts.Items[ X ] is TidAttachment )
then
                  name  :=
(TidAttachment(idmessage1.MessageParts.Items[x]).FileName);
             end;


Thanks

Gordon.

Replies:

www.cryer.info
Managed Newsgroup Archive