if ClientSocket.Active then ClientSocket.Active := False;
if InputQuery(Computer to connect to, Address Name:, Server) then
if Length(Server) $#@62; 0 then
with ClientSocket do
begin
Host := Server;
Active := True;
ListenItem.Checked := False;
end;
这段代码中,if Length(Server) $#@62; 0 then 是什么意思呀??哪里不对呀??
if InputQuery(Computer to connect to, Address Name:, Server) then
if Length(Server) $#@62; 0 then
with ClientSocket do
begin
Host := Server;
Active := True;
ListenItem.Checked := False;
end;
这段代码中,if Length(Server) $#@62; 0 then 是什么意思呀??哪里不对呀??
if Length(Server) $#@62; 0 then
改写成:
if Length(server)>0 then这段代码的意思是:如果你输入的字符串 >0 则将 这个字符串赋给客户机的HOST,如果你输入IP地址也可以,如果输入字符串代表是计算机名称