Results 1 to 6 of 6

Thread: write to txt file: subscript out of range

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    10

    Resolved write to txt file: subscript out of range

    hey all


    i got this problem:

    VB Code:
    1. Dim A As Integer
    2. Dim RijNamen(40) As String
    VB Code:
    1. A = 0
    2. Open File For Output As #1
    3.  For A = 1 to 80
    4.   Select Case A
    5.    Case Is < 30
    6.     Write #1, RijTijden(A)
    7.    Case Is > 30 And < 41
    8.     Write #1, RijHighScores(A - 30)
    9.    Case Is > 40
    10.     Write #1, RijNamen(A - 40)        '<--- here's the error
    11.  Next
    12. Close #1

    everything i put in the array RijNamen are dimmed as strings, but i guess the problem is there, i have no doubt where it could be
    Last edited by sheepke; Jun 20th, 2005 at 07:53 PM.

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