用闹钟运算

来源:互联网 发布:杜兰特新秀体测数据 编辑:程序博客网 时间:2024/05/16 14:13

Option Explicit
Dim I As Integer
Dim sum As Integer
Private Sub Command1_Click()
Cls
Font.Size = 70

End Sub
Private Sub Timer1_Timer()

sum = sum + I
I = I + 1
If I > 100 Then
Me.Timer1.Enabled = False
Print sum
Print "timer’s  i=" & I

End If

End Sub

Function f(X As Integer) As Long
Dim I As Integer
End Function

0 0
原创粉丝点击