[thelist] [ASP] Dynamically resizing multi-dimensional array

Martyn Haigh martyn.haigh at virgincosmetics.com
Fri Dec 27 08:49:00 CST 2002


Yeah - this does work.

Remember though you can only do this for the last dimension of the array.

Martyn Haigh

Site Developer

-----Original Message-----
From: Rob Smith [mailto:rob.smith at THERMON.com]
Sent: 27 December 2002 14:37
To: 'thelist at lists.evolt.org'
Subject: RE: [thelist] [ASP] Dynamically resizing multi-dimensional array

>... 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
--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !



More information about the thelist mailing list