Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: indy TIdHTTP usage

www.cryer.info
Managed Newsgroup Archive

Re: indy TIdHTTP usage

Subject:Re: indy TIdHTTP usage
Posted by:"Ed" (..@kdtc.net)
Date:Tue, 18 Apr 2006 22:34:57

Remy Lebeau (TeamB) wrote:
>
>>However, I'm not even able to get to that
>>part of creating an event for the button's
>>onclick.
>
>
> Why not?  Just double-click on the event in the Object Inspector, or on the
> button itself, like you would in any other version of Delphi.
>

Ok, I misrepresented myself.  Yes, I can do that, but the
'error' kinda distracted me from doing anything.  :)

>
>>Just browsing the source, I get one error in the mainform's public
>
> definition.
> <snip>
>
>>When I mouseover the TIdHTTP, I get an
>>"Undeclared identifier: 'TIdHTTP'"
>
>
> Did you add IdHTTP to your uses clause?

Oh.   Nope.  The thing is, I thought when
I added the TIdHTTPClient component, wouldn't
Delphi add the IdHTTP automatically?


>
>
>>So I take a look at the uses list and notice
>>"Indy" not there.  So I add "Indy" to the
>>end.
>
>
> That was not the correct thing to do.  You cannot add tne entire Indy
> library to your code generically like that.  You have to specify the
> individual units, just like with any other VCL component.
>
Adding the 'Indy' library was just to stop the
compiler from giving me red underlines.  I guess
it wasn't the right way.

> There is no unit named "Indy".

Which goes to explain why it wasn't working. :)

Thanks for the info.  Will add the IdHTTP
to the uses clause.

Ed

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive