janevok
06-09-2003, 03:57 PM
Hi,
For the first time im using arrays and setting their size automatically. I am encountering this error (Subscript out of range: '2') and ive no idea why!
Here is the code that produces this error:-
dim navbarSectionsTitleArray2()
redim navbarSectionsTitleArray2(1)
dim rows2
rows2 = uBound(navbarSectionsTitleArray2)
'assign values to the array
redim preserve navbarSectionsTitleArray2(rows + 1)
Im wondering if it could have anything to do with the values i am assigning to the array? It is just text.
I know this is not much info, but if anyone can give me an idea of why this error occurs that should give me a start on solving this problem.
any advice/help much appreciated
Laura
For the first time im using arrays and setting their size automatically. I am encountering this error (Subscript out of range: '2') and ive no idea why!
Here is the code that produces this error:-
dim navbarSectionsTitleArray2()
redim navbarSectionsTitleArray2(1)
dim rows2
rows2 = uBound(navbarSectionsTitleArray2)
'assign values to the array
redim preserve navbarSectionsTitleArray2(rows + 1)
Im wondering if it could have anything to do with the values i am assigning to the array? It is just text.
I know this is not much info, but if anyone can give me an idea of why this error occurs that should give me a start on solving this problem.
any advice/help much appreciated
Laura