const beeptime='18:00:00'在timer处理中
1.timer的interval属性要小于1000毫秒,设置为500毫秒吧
2.然后
在timer里面
var sTime:String;
begin
sTime:=timetostr(time);
if sTime=beepTime then
begin
dosomething...
end;
end;
实际上,还要注意一下计算机里面的区域设置,否则time就会这样返回:
6:00:00 PM,或者...
6:00:00 p.m. 或者 AM 3:03:36 上午 03:03:48
还有3:04:07 πμ haha...这个是希腊时间
1.timer的interval属性要小于1000毫秒,设置为500毫秒吧
2.然后
在timer里面
var sTime:String;
begin
sTime:=timetostr(time);
if sTime=beepTime then
begin
dosomething...
end;
end;
实际上,还要注意一下计算机里面的区域设置,否则time就会这样返回:
6:00:00 PM,或者...
6:00:00 p.m. 或者 AM 3:03:36 上午 03:03:48
还有3:04:07 πμ haha...这个是希腊时间
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货