请先登录 | 注册
IPSC1978.GICP.NET
019 计数器的用法 - 文章首页→返回版区
■标题:019 计数器的用法
■作者:IPSC [2026/2/3 21:13:31]
[vb]

Sub Class_Globals
Private timer1 As Timer
End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("page1")

timer1.Initialize("Timer21", 1000)
' 启用定时器
timer1.Enabled = True

End Sub

Private Sub Timer21_Tick
Log("定时器触发")
timer1.Enabled=False
End Sub



[/vb]



【回复/版区/上篇/下篇/发贴/仅文字/HTML】
【倒序/最近21条回复】(暂无)
(查看完整版网页)



短讯|首页|登录|算法|电脑版 .
DK MiniBBS Plus v2.0
mm0759.com
57 毫秒 .