Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : 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: | Mon, 29 Jan 2007 05:29:52 |
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote
> > (2) tried
> > Memo1.Lines.Text :=
> > (IdMessage1.MessageParts.Items[0] as TIdText).Body.Text
>
> The only difference is that 'as' will throw a different
exception if the cast fails, whereas TIdText(...) will not.
That was the intent.
--JohnH