注册 登录
编程论坛 Delphi论坛

[求助]网上校对时间程序出错(附源码)

eaglecn 发布于 2007-11-08 13:29, 1511 次点击

procedure TForm1.Timer1Timer(Sender: TObject);
begin
IdTime1.Host:='210.72.145.44';
label3.Caption:=datetimetostr(IdTime1.DateTime);
label4.Caption:=datetimetostr(Now());
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
IdTime1.SyncTime;
end;

end.


只有本站会员才能查看附件,请 登录

[此贴子已经被作者于2007-11-8 15:37:10编辑过]

1 回复
#2
anthony6342007-11-08 18:41
端口没设,连接不成功
1