Hello Ann, Yes. What you also can do is: i := List.IndexOf(Sender); Then i is the index in the List where Sender is, or -1 if not found and you can thus use it to add the right item to another list and/or remove it etc...
--- Rgds, Wilfried http://www.mestdagh.biz Tuesday, May 3, 2005, 13:53, Ann wrote: > 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