Cramac писал(а):за 1 ход цикла, идет перебор 300 000 значений
private Sub chek1_file(filename)
count_ch = 0
ready = 0
For i = 1 To 30
If arr_file(filename, i) = 0 Then
count_ch = count_ch + 1
End If
Next i
If count_ch = 30 Then
ready = 1
End If
Form2.Label6.Caption = Form2.Label6.Caption & ready & " "
If ready <> 0 Then
Form2.Label7.Caption = Form2.Label7.Caption & "(" & ready & ")"
ReDim tmp1(UBound(nomerwinb, 1), 2)
For o = 1 To UBound(nomerwinb, 1)
If nomerwinb(o, 1) <> 0 Then
tmp1(o, 1) = nomerwinb(o, 1)
tmp1(o, 2) = nomerwinb(o, 2)
End If
Next o
' переопределяем основной массив
ReDim nomerwinb(UBound(nomerwinb, 1) + 1, 2)
For o = 1 To UBound(nomerwinb, 1) - 1
nomerwinb(o, 1) = tmp1(o, 1)
nomerwinb(o, 2) = tmp1(o, 2)
Next o
nomerwinb(UBound(nomerwinb), 1) = filename
nomerwinb(UBound(nomerwinb), 2) = ready
tmp_n_w = 1
End If
End Sub
Private Sub Command1_Click()
for i=1 to 200
For p = 1 To kolvo_file
chek1_file (p)
Next p
next i
End Sub
Cramac писал(а):....
Form2.Label6.Caption = Form2.Label6.Caption & ready & " "
....
s = s & "OBHSS"
Сейчас этот форум просматривают: AhrefsBot и гости: 18