[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

06/17/2005 at 08:23PM PDT, ID: 21462606
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.4

Help to make program faster

Asked by 981487 in VB Controls

ok, heres another easy one. all i need is get results faster :)
heres my code:

Private Sub smth()
Dim I As Integer
Dim StrFileLines() As String

For v = 1 To 11
    Open ("./tmp/" & failiv(v - 1) & ".txt") For Input As #v
    massiv(v - 1) = Input(LOF(v), #v)
    Close #v
Next v
For b = 0 To 10
    StrFileLines = Split(massiv(b), vbNewLine)
    bb(b) = UBound(StrFileLines) - 1
    Erase StrFileLines
Next b
End Sub

Private Sub do_it()
ct = 0
stp = False
Do
  calc
  new_ary
Loop Until stp = True
End Sub

Private Sub calc()
Dim StrFileLines1() As String
For r = 0 To 15
    calc_ary(r) = start_ary(r)
Next r
For t = 0 To 10
    StrFileLines1 = Split(massiv(t), vbNewLine)
    ReDim strFile(UBound(StrFileLines1))
    For I = LBound(strFile) To UBound(strFile)
        strFile(I).sField = Split(StrFileLines1(I), strDelim)
    Next I
    Erase StrFileLines1
    For tt = 0 To 15
        calc_ary(tt) = calc_ary(tt) + strFile(kntvk(t)).sField(tt)
        If calc_ary(tt) = 3 Then calc_ary(tt) = 0
    Next tt
Next t
p = 0
For r = 0 To 15
   p = p + calc_ary(r)
Next r
If p = 0 Then
    MsgBox (a10 & "." & a9 & "." & a8 & "." & a7 & "." & a6 & "." & a5 & "." & a4 & "." & a3 & "." & a2 & "." & a1 & "." & a0 & ".")
    stp = True
End If
End Sub

Private Sub new_ary()
a0 = a0 + 1
If ct = 5000000 Then stp = True
ct = ct + 1
If a10 > bb(10) Then
    stp = True
    MsgBox ("nothing")
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) And a4 = bb(4) And a5 = bb(5) And a6 = bb(6) And a7 = bb(7) And a8 = bb(8) And a9 = bb(9) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = 0
    a5 = 0
    a6 = 0
    a7 = 0
    a8 = 0
    a9 = 0
    a10 = a10 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) And a4 = bb(4) And a5 = bb(5) And a6 = bb(6) And a7 = bb(7) And a8 = bb(8) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = 0
    a5 = 0
    a6 = 0
    a7 = 0
    a8 = 0
    a9 = a9 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) And a4 = bb(4) And a5 = bb(5) And a6 = bb(6) And a7 = bb(7) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = 0
    a5 = 0
    a6 = 0
    a7 = 0
    a8 = a8 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) And a4 = bb(4) And a5 = bb(5) And a6 = bb(6) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = 0
    a5 = 0
    a6 = 0
    a7 = a7 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) And a4 = bb(4) And a5 = bb(5) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = 0
    a5 = 0
    a6 = a6 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) And a4 = bb(4) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = 0
    a5 = a5 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) And a3 = bb(3) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = 0
    a4 = a4 + 1
End If
If a0 > bb(0) And a1 = bb(1) And a2 = bb(2) Then
    a0 = 0
    a1 = 0
    a2 = 0
    a3 = a3 + 1
End If
If a0 > bb(0) And a1 = bb(1) Then
    a0 = 0
    a1 = 0
    a2 = a2 + 1
End If
If a0 > bb(0) Then
    a0 = 0
    a1 = a1 + 1
End If

kntvk(0) = a0
kntvk(1) = a1
kntvk(2) = a2
kntvk(3) = a3
kntvk(4) = a4
kntvk(5) = a5
kntvk(6) = a6
kntvk(7) = a7
kntvk(8) = a8
kntvk(9) = a9
kntvk(10) = a10

End Sub

so... can anyone help me? anything helps :) thanks
[+][-]06/17/05 11:05 PM, ID: 14247274

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/05 04:04 AM, ID: 14247925

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/05 01:26 PM, ID: 14249688

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/05 01:44 PM, ID: 14249734

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/05 02:12 PM, ID: 14249802

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/05 06:06 PM, ID: 14250264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/05 09:12 PM, ID: 14250606

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/19/05 03:31 AM, ID: 14251455

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/19/05 10:02 AM, ID: 14252432

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/19/05 02:32 PM, ID: 14253212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/19/05 03:24 PM, ID: 14253339

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/19/05 03:39 PM, ID: 14253376

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/19/05 03:42 PM, ID: 14253382

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/19/05 03:54 PM, ID: 14253408

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/19/05 06:56 PM, ID: 14254016

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/19/05 06:59 PM, ID: 14254023

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/20/05 04:14 PM, ID: 14261550

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: VB Controls
Sign Up Now!
Solution Provided By: JR2003
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06/20/05 10:25 PM, ID: 14263126

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/24/05 09:39 PM, ID: 14298694

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/25/05 01:45 AM, ID: 14299163

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/23/05 12:57 AM, ID: 14508989

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74