展开全部
Dim ExitLoop As Boolean
Private Sub Command1_Click()
ExitLoop = False
Do
If ExitLoop Then Exit Sub
DoEvents
If Me.BackColor = 0 Then Me.BackColor = vbRed Else Me.BackColor = 0
Loop
End Sub
Private Sub Command2_Click()
ExitLoop = True
End Sub
Private Sub Command1_Click()
ExitLoop = False
Do
If ExitLoop Then Exit Sub
DoEvents
If Me.BackColor = 0 Then Me.BackColor = vbRed Else Me.BackColor = 0
Loop
End Sub
Private Sub Command2_Click()
ExitLoop = True
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Dim A as Boolean
Private Sub Command1_Click
Do
Doevents
Cls
Print Timer
Loop While A=False
End Sub
Private Sub Command2_Click
A=Not A
End Sub
Private Sub Command1_Click
Do
Doevents
Cls
Print Timer
Loop While A=False
End Sub
Private Sub Command2_Click
A=Not A
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
do
循环内容..
while true
循环内容..
while true
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询