Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: EListError - Index out of bound [0]

www.cryer.info
Managed Newsgroup Archive

Re: EListError - Index out of bound [0]

Subject:Re: EListError - Index out of bound [0]
Posted by:"John Herbster" (herb-sci1_at_sbcglobal.net)
Date:Sun, 28 Jan 2007 14:31:03

"John Mitson" <jrmit@hawaii.rr.com> wrote
> ... encountered a run-time error on following line:
>   Memo1.Lines.Text :=
>    TIdText(IdMessage1.MessageParts.Items[0]).Body.Text;
> Raised an exception -
>    ElistError with messageList Index Out of Bounds [0]

John M,
Have you
(1) checked value of
  IdMessage1.MessageParts.Items.Count = 0
(2) tried
  Memo1.Lines.Text :=
      (IdMessage1.MessageParts.Items[0] as TIdText).Body.Text
HTH, JohnH

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive