Results 1 to 13 of 13

Thread: combining arrays

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    combining arrays

    I have two arrays that are created with the following code and then attempted to be concatenated with the last for loop. However it gives a "subscript out of range" error after only one iteration!? help!?

    VB Code:
    1. intmon = Format(strx, "mm")
    2. intyr = Format(strx, "yy")
    3.  
    4. Open "O:\ER2002\Inetlog\" & intyr & "\" & intmon & "\" & intmon & "e.htm" For Input As #1
    5.     rtb1.LoadFile "O:\ER2002\Inetlog\" & intyr & "\" & intmon & "\" & intmon & "e.htm"
    6. Close #1
    7.     arrmon = Split(rtb1, "</a></div>")
    8. i = UBound(arrmon, 1)
    9.  
    10. intmon = Format(Now, "mm")
    11. intyr = Format(Now, "yy")
    12.  
    13. Open "O:\ER2002\Inetlog\" & intyr & "\" & intmon & "\" & intmon & "e.htm" For Input As #1
    14.     rtb1.LoadFile "O:\ER2002\Inetlog\" & intyr & "\" & intmon & "\" & intmon & "e.htm"
    15. Close #1
    16.     arrmon2 = Split(rtb1, "</a></div>")
    17.    
    18. For x = 0 To UBound(arrmon2, 1)
    19.      arrmon(i) = arrmon2(x)
    20.      i = i + 1
    21. Next x
    Last edited by ober0330; Jun 27th, 2002 at 12:50 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