# Re: A question about timer!!

Posted by 阿飞 on October 06, 1998 at 12:52:18:

In Reply to: A question about timer!! posted by Vincent on October 05, 1998 at 13:55:19:

: 有谁能告诉我,如何使timer的时间(hour , minute , second)显示在
: label上,不是使用系统的时间!!而是以一个回圈run!!

这个问题我也曾碰过,可以提供给您参考一下....
先宣告一静态变数,如此即使离开timer程式后变数一样
不会被重设为零.
for example:
sub timer_1()
static count as integer
if count<10 then
count=count+1
label1.caption=str(count)
else
count=0
end if
end sub

Follow Ups: