Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : TidContext does not contain a member name Connection

www.cryer.info
Managed Newsgroup Archive

TidContext does not contain a member name Connection

Subject:TidContext does not contain a member name Connection
Posted by:"Marc" (chantm..@albint.com)
Date:Thu, 15 Mar 2007 10:12:17

This simple structure does not work in my code.

procedure Tform3.IdTCPServer1Execute(AContext: TIdContext);
var
   i: Integer;
begin
   for i := 1 to 15 do begin
     AContext.Connection.IOHandler.WriteLn(IntToStr(i));
     Sleep(1000);
   end;
   TidTCPConnection.Disconnect;
end;

The error is : TidContext does not contain a member name Connection.

I'm using INDY 10.

Can you help a Beginner ?

Thanks

Replies:

www.cryer.info
Managed Newsgroup Archive