6274.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: A question about timer!!</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: A question about timer!!</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by 阿飞 on October 06, 1998 at 12:52:18:<p>
In Reply to: <a href="6249.html">A question about timer!!</a> posted by Vincent on October 05, 1998 at 13:55:19:<p>
: 有谁能告诉我,如何使timer的时间(hour , minute , second)显示在<br>: label上,不是使用系统的时间!!而是以一个回圈run!!<p> 这个问题我也曾碰过,可以提供给您参考一下....<br>先宣告一静态变数,如此即使离开timer程式后变数一样<br>不会被重设为零.<br> for example:<br> sub timer_1()<br> static count as integer<br> <br> if count<10 then<br> count=count+1<br> label1.caption=str(count)<br> else<br> count=0<br> end if<br> end sub<br> <br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 6274-->
</ul><!--end: 6274-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?