level 4
Private Sub CommandButton1_Click()
If CommandButton1.Caption <> "开始" Then
CommandButton1.Caption = "开始"
Else
CommandButton1.Caption = "结束"
i = 10
Label1.Caption = 10
Do While i > 0
DoEvents
Label1.Caption = i
i = i - 1
Application.Wait (Now + TimeValue("00:00:01"))
If i = 0 Or CommandButton1.Caption = "开始" Then
CommandButton1.Caption = "开始"
Exit Sub
End If
Loop
End If
End Sub
2024年07月31日 03点07分
