可以運行得到...但第二個IF會執行很多次
这个社会太复杂。。。
别那么拿多 那8个来做实验
Dim i As Integer
Private Sub Command2_Click()
For i = 0 To 7
If Command1(i).Caption <> "1" Then Exit For
If i = 7 Then Print "A"
Next i
End Sub
如果全部等于1可以 输出A
Dim i As Integer
Private Sub Command2_Click()
For i = 0 To 7
If Command1(i).Caption <> "1" Then Exit For
Next i
If i = 7 Then Print "A"
End Sub
放上去者不行