aa wrote:
The reason I said that that initially I did exactly as you said -
declared it Dim
and then ReDim. As a result I got an error saing that the arrey
cannot be ReDimed for it decleared as a fixed length array.
Then you did not do exactly as I said. My example used a dynamic array,
not a fixed-length array.
When I changed to ReDim it worked
If you add "option explicit" to your script, you will realize what you
did: you redimmed a variable that had not been declared, causing the
compiler to declare one for you.
This is a fixed-length (static) array:
dim arr(3)
Static arrays cannot be redimmed.
Only dynamic arrays can be redimmed:
dim arr()
....
redim arr(5)
I know I'm sounding like a broken record, but the documentation does
cover this topic.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.