每小时检查一次数据库 [英] check databse every hour
本文介绍了每小时检查一次数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我认为标题中已全部说明,我有一个方法可以执行一些查询和简单的比较,并且我想在每个固定的时间段调用它,例如,我应该将date.now()与每个时间段的当前日期进行比较,如果date.now()== waited_date会收到警报.我该怎么办?
如果waited_date到了,我也想更改图像源.
谢谢:)
Hi,
I think all is said in the title, i have a methode that do some querys and simple comparison and i want to call it every fixed period of time for example i shoould compare date.now() with the current date every period of time and get an alert if date.now()== waited_date.how can i do that?
also i want to change the image source if the waited_date arrives.
Thank you :)
推荐答案
您可能想研究一下计时器类.
MSDN计时器类文档 [此处 [
You may want to look into the timer class.
MSDN Timer Class Documentation[^]
And here[^] are some examples.
这篇关于每小时检查一次数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文