If Downloader1(0).ttt = True And Downloader1(1).ttt = True And Downloader1(2).ttt = True And Downloader1(3).ttt = True And Downloader1(4).ttt = True And Downloader1(5).ttt = True Then GoTo rr1 Else GoTo rr请问如何节俭一些!
因为控件数组不一定是多些!
因为控件数组不一定是多些!
Dim b As Boolean
For i = Downloader1.LBound To Downloader1.UBound
If Downloader1(i).ttt Then
b = True
Exit For
End If
Next i
If b Then
GoTo rr1
Else
GoTo rr
End If
for i = LBound(downloader1) to UBound(downloader1)
if downloader1(i).ttt=true then
GoTo rr1 Else GoTo rr
End If
next
Dim flag As Boolean
Private Sub Command1_Click()
flag = False
Dim i As Long
For i = LBound(downloader1) To UBound(downloader1)
If downloader1(i).ttt = False Then
flag = True
GoTo rr1
End If
Next If flag = False Then GoTo ErrEnd Sub
If Downloader1(0).ttt And Downloader1(1).ttt And Downloader1(2).ttt And Downloader1(3).ttt And Downloader1(4).ttt And Downloader1(5).ttt Then GoTo rr1 Else GoTo rr怎么会不行
for each p in controls("Downloader1")
if p.ttt=false then GoTo rr1
next
GoTo rr
for each p in controls("Downloader1")
if p.ttt=false then GoTo rr
next
GoTo rr1
不好意思,弄反了。。楼主用其他简单的吧。。