本文整理自网络,侵删。
procedure TForm1.Timer1Timer(Sender: TObject);var Hn,Mn,Sn:integer; Hour,Min,Sec,MSec: Word;beginHn:=10;mn:=59;sn:=50; // Decodedate(); 年月日 DecodeTime(now,Hour,Min,Sec,MSec); //当时 分 秒 相等时 if (Hn=Hour)and(Mn=Min)and(Sn=Sec) then begin //触发 end;
end;
相关阅读 >>
Delphi tokyo 版本 twebbrowser 的一个问题(bug?)
windows api 的数据类型与 Delphi 数据类型对照表
Delphi 使用indy idftp 通过android 上传文件
更多相关阅读请进入《Delphi》频道 >>