You have TList.IndexOf 
--
[EMAIL PROTECTED]
http://www.overbyte.be

----- Original Message ----- 
From: "Ann" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Tuesday, May 03, 2005 1:53 PM
Subject: Re: [twsocket] Little question... TList of HTTPCli


> yes but im not asking about sender but how do i find this sender in tlist of
> components...
> 
> do i have to make something like this or is there easier way?
> 
> for i:=0 to list.item.count-1 do
>  begin
>   if list.item[i] = sender then this_is_the_one?
>  break;
>  end;
> 
> ----- Original Message ----- 
> From: "Francois Piette" <[EMAIL PROTECTED]>
> To: "ICS support mailing" <twsocket@elists.org>
> Sent: Tuesday, May 03, 2005 11:26 AM
> Subject: Re: [twsocket] Little question... TList of HTTPCli
> 
> 
> > > Just one little question...
> > > When i have a TList of busy HTTPCli'ents how do i
> > > know which one should i
> > > remove on OnRequestDone event?
> >
> > You have the sender argument in OnRequestDone. It's the Http component
> that sent the event. You can
> > cast it to THttpCli and do whatever you like.
> >
> > btw: This is basic Delphi programming. The sender argument of any event
> always refers to the
> > component source of the event. You always need it when the same handler is
> used for many components.
> >
> > --
> > [EMAIL PROTECTED]
> > http://www.overbyte.be
> >
> >
> > -- 
> > To unsubscribe or change your settings for TWSocket mailing list
> > please goto http://www.elists.org/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
> >
> >
> 
> 
> 
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to