涛
涛子_1966
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码如下:
procedure TForm1.Button1Click(Sender: TObject);
begin
query1.First;
while not query1.Eof do
begin
ClientSocket1.Socket.SendText(query1xm.AsString);
query1.Next;
end;
end;
----------------------------
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
begin
memo1.Lines.Add(socket.ReceiveText);
end;
为什么memo1里面出现的是:"张三李四王二"(一行)
我期望得到的是(三行):
张三
李四
王二
请问是何道理?
procedure TForm1.Button1Click(Sender: TObject);
begin
query1.First;
while not query1.Eof do
begin
ClientSocket1.Socket.SendText(query1xm.AsString);
query1.Next;
end;
end;
----------------------------
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
begin
memo1.Lines.Add(socket.ReceiveText);
end;
为什么memo1里面出现的是:"张三李四王二"(一行)
我期望得到的是(三行):
张三
李四
王二
请问是何道理?