S
springkaosh
Unregistered / Unconfirmed
GUEST, unregistred user!
以下代码有错吗?我在写一个简单的ftp连接
nmftp1.Host:=edit1.Text;
nmftp1.Port:=21;
nmftp1.TimeOut:=50000;
nmftp1.UserID:=edit2.Text;
nmftp1.Password:=edit3.Text;
try
nmftp1.Connect;
except
on E:exception do
if e.Message='something'
then writeln('poo')
end
nmftp1.Host:=edit1.Text;
nmftp1.Port:=21;
nmftp1.TimeOut:=50000;
nmftp1.UserID:=edit2.Text;
nmftp1.Password:=edit3.Text;
try
nmftp1.Connect;
except
on E:exception do
if e.Message='something'
then writeln('poo')
end