Web Analytics Made Easy -
StatCounter Subscript out of range: '[number: 0]' - CodingForum

Announcement

Collapse
No announcement yet.

Subscript out of range: '[number: 0]'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Subscript out of range: '[number: 0]'

    yeah, i know another one of those. I don't get it
    Is it UBOUND related?
    Here is the code it blows on (red is where it's pointing to an error):
    Code:
    Header = split(strXMl, "<ITEM1>")
    ArrayListXML = split(Header(0),"<ITEM>")
    ArrayCount = (UBound(ArrayListXML) - LBound(ArrayListXML) + 1)
    X=1
    do while X < ArrayCount
    		ArrayListXML(X) = "<DATA><ITEM>" + ArrayListXML(X) + "</DATA>"
    		X = X+1
    Loop
    Anyone knows what the problem is?

  • #2
    It's obviously not happy with Header(0)
    Check the contents of the Header array before splitting it.
    http://www.degs.co.uk
    http://www.computer-helpforum.com

    Comment

    Working...
    X