[thelist] ok - ubound - lbound - whatbound???

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Fri Nov 5 15:14:53 CST 2004


> I get subscript out of range 1 on the newUBound line.>>>	

	Which one? :)

	Got to http://msdn.microsoft.com/scripting and pick the VBScript
reference; then read up on the Redim function.  You'll probably want
Redim Preserve (to maintain the current data in the array).



-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Brian Delaney

I am having problems with a simple array.

I need a dynamic array ex.
DIM myarray()

When I go to add elements to it ex:
DIM newUBound
newUBound = (ubound(myarray) + 1)
myarray(newUBound) = myinfoDB(0,i)

I get subscript out of range 1 on the newUBound line.>>>
I know that myarray is empty...
how does one use a dynamic array in asp?


This message, including any attachments, is intended solely for the use
of the named recipient(s) and may contain confidential and/or priveleged
information.  Any unauthorized review, use, disclosure or distribution
of this communication(s) is expressly prohibited.  If you are not the
intended recipient, please contact the sender by reply e-mail and
destroy any and all copies of the original message.

* * Please support the community that supports you.  * *

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