本文介绍了每小时检查一次数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我认为标题中已全部说明,我有一个方法可以执行一些查询和简单的比较,并且我想在每个固定的时间段调用它,例如,我应该将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.
更多推荐
每小时检查一次数据库
发布评论