var aTime:string;
begin
aTime:=FormatDateTime('hh:nn:ss',Now);
if (aTime>'23:00:00') or (aTime<'06:00:00') then
begin
// 执行代码
end;
end;上述代码,请参考。
begin
aTime:=FormatDateTime('hh:nn:ss',Now);
if (aTime>'23:00:00') or (aTime<'06:00:00') then
begin
// 执行代码
end;
end;上述代码,请参考。
解决方案 »
- [难题]----如何在Treeview加载数据时使用多线程?
- delphi中怎么样给panel添加自定义颜色的边框?
- WGYKING(修罗是谁?!) 进来接分~
- 【调查】 大家都用DELPHI的那个版本?都做那方面开发呀?
- 为什么我下载下来的SReport总是不能安装???????????
- 用canvas遇到一个简单的问题,请帮一下(在线等回答!!)
- 哪里有阴阳日历控件?
- 求助:访问带密码的外部数据库,该如何写?
- 关于DEGrid的小问题????
- 请问:<delphi 5 开发人员指南>的电子文挡哪里有下载的?
- deiphi7程序运行关闭时 显示Exception EAccessViolation in module spxs.exe at 00100674
- 关于COMBOBOX模糊查询的问题
begin
aTime:=FormatDateTime('hh:nn:ss',Now);
if (aTime>='18:00:00') and (aTime<='19:00:00') then
begin
// 执行代码
end;
end;
假如 时间区间定义为 18:00:00- 19:00:00 ,使用上述代码。