编一个倒计时程序,为什么执行时报错“编译错误 语法错误”
Dim m As LongOption Explicit
Private Sub Command1_Click()
Timer1.Enabled = True
m = Val(Text1.Text) * 60
Label1.Caption = "现在开始倒计时"
Command1.Visible = False
End Sub
Private Sub Timer1_Timer()
m = m - 1
If m < 0 Then
Timer1.Enabled = False
msgbox "时间到!";0;"倒计时"
Label1.Caption = "请输入计时的分钟数"
Text1.Text = ""
Command1.Visible = True
Else
Text1.Text = m
End Sub