K
kusila
Unregistered / Unconfirmed
GUEST, unregistred user!
本人新手,此为局域网通讯程序的部分源码,请各位指教
procedure TForm1.ConnectltemClick(Sender: TObject);
begin
if ClientSocket.Active then ClientSocket.Active:=False;
if InputQuery('Computer to connetc to','Address Name:',Server) then
if Length(Server)>0 then
with ClientSocket do
begin
Host :=Server;
Active :=True;
ListenItem.Checked :=False;
end;
end;
错误为:
[Error]Unit1.pas(4):Undeclared identifier:'Server'
[Error]Unit1.pas(5):Incompatible types
不知道Server该怎样申明,望指教初学者,谢谢!!
procedure TForm1.ConnectltemClick(Sender: TObject);
begin
if ClientSocket.Active then ClientSocket.Active:=False;
if InputQuery('Computer to connetc to','Address Name:',Server) then
if Length(Server)>0 then
with ClientSocket do
begin
Host :=Server;
Active :=True;
ListenItem.Checked :=False;
end;
end;
错误为:
[Error]Unit1.pas(4):Undeclared identifier:'Server'
[Error]Unit1.pas(5):Incompatible types
不知道Server该怎样申明,望指教初学者,谢谢!!