本文整理自网络,侵删。
delphi 时间到就触发事件
var
S,D:tdatetime;
begin
Label1.Caption:=FormatDateTime(' hh:mm:ss',Now); //此时
//S:=FormatDateTime(' hh:mm:ss',Now);
s:=strtodatetime(Label1.Caption);
D:=strtodatetime('14:01:02'); //到达时间 --你自己定;www.delphitop.com
if s=d then
begin
showmessage('Y');
// 这中间你加入你自己要 执行的数据库语句
end;
end;
相关阅读 >>
Delphi关于dbgrid和webbrowser的焦点问题
Delphi获取flash文件的影片时长,原始尺寸,帧数等信息
Delphi文件 fileopen 、fileseek等的用法(看红色字体)
Delphi vcl 在trichedit控件中设置wordwrap属性后无法自动换行的问题
更多相关阅读请进入《Delphi》频道 >>