Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: TIdDNSResolver in INDY10

www.cryer.info
Managed Newsgroup Archive

Re: TIdDNSResolver in INDY10

Subject:Re: TIdDNSResolver in INDY10
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 13 Nov 2007 12:48:32

"GannTrader" <Gann.trader@hotmail.com> wrote in message
news:4739f770@newsgroups.borland.com...

> To get the IPnumber i have to wrote
>
> (iddns.QueryResult[0] as TaRecord).IPAddress

What's wrong with that?  The QueryResult is a collection of
TResultRecord-derived objects.  Since a single query can handle multiple
types of request data at one time, the QueryResult holds different objects
for different types of reply data.  So you have to know what type to cast to
in order to get the requested data.

> I just wonder if there is an other way of doing this?

No.  Whydo you need one?


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive