每小时检查一次数据库

编程入门 行业动态 更新时间:2024-10-25 04:17:04
本文介绍了每小时检查一次数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我认为标题中已全部说明,我有一个方法可以执行一些查询和简单的比较,并且我想在每个固定的时间段调用它,例如,我应该将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.

更多推荐

每小时检查一次数据库

本文发布于:2023-11-27 07:07:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637079.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:每小时   数据库

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!