Hello, Sorry, you need a typecast:
Client := TClient(WSocketServer.Client[n]); --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, November 1, 2005, 11:09, ICSNewbie2005 wrote: > Hi Mr. Wilfried M., > Yes below is code I am talking about =), When i went to compile though it > say Incompatible types. > Client which is of Type (TClient) and the assignment > to wSocketServer.Client[] which is of Type (TWSocketClient). > Lol i did not know sending data to 2 different connection make so hard but > i'm new to delphi too. Thank you for patience. Your code below > procedure TForm1.SendToAllBtnClick(Sender: TObject); > var > n: integer; > Client: TClient; > begin > for n := 0 to WSocketServer.ClientCount - 1 do try > Client := WSocketServer.Client[n]; > Client.SendStr('str1'); > Client.RemoteSocket.SendStr('str2'); > except > end; > end; > -ICSNewbie05 -- 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