[thelist] [ASP] Dynamically resizing multi-dimensional array
Rob Smith
rob.smith at THERMON.com
Fri Dec 27 08:33:01 CST 2002
>... try to resize aDefinition after this dynamically, I get a
>"Subscript out of range" error. ... Can anyone enlighten me?
Yes I can. To add on to the size of arrays on the fly, you can use the
following code:
if uBound(yourArray) > 0 then
Redim Preserve yourArray(uBound(yourArray) + increment)
end if
This is untested but it should work. Alternatively, you can read more on the
"Redim Preserve" on da web.
Rob.Smith
More information about the thelist
mailing list