Results 1 to 40 of 40

Thread: [RESOLVED] Exe file crashes

Threaded View

  1. #19
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Exe file crashes

    You will never reach Exit Do

    VB Code:
    1. For i = UB To 0 Step -1
    2.             With Txt(i)
    3.                 .index = .index + 1
    4.                 If .index > .Bounds Then
    5.                     .index = 0
    6.                 Else
    7.                     Exit For
    8.                 End If
    9.             End With
    10.         Next i
    11.         If i = -1 Then 'we are done
    12.             Exit Do
    13.         End If
    This is because your always resetting .index to zero... or you will always have at least one Txt(i) array element with .index <= .Bounds, which in turn calls Exit For, which in turn keeps i from getting to -1


    Tell us what you are trying to accomplish with that procedure... make the explanation descriptive... so we can rewrite the procedure (or relevant part) for you.
    Last edited by leinad31; Nov 26th, 2006 at 09:42 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width