Click to See Complete Forum and Search --> : Arrays + asp


new214
04-10-2007, 08:44 AM
Im working on some code that uses arrays. what i need to know is abit about multidimensional arrays such as how commands work

what does this code do?

Array( 2, iRowLoop )
the same for
Array(iColLoop, iRowLoop )
UBound(Array, 2 )

better tutorials out there on multidimensionl/advanced arrays in asp other than whats available on a google search?

pLese reply
Thanks

buntine
04-10-2007, 07:43 PM
Online, a Google search is actually your best bet. Some of the old ASP books (hopefully noone writes them anymore) have indepth sections on multidimensional arrays.

The UBOUND function will return the maximum upper bound for a particular array (or an array dimension, in this case).

Your code defines an array, but I am not sure if you can restore memory like that at runtime.

Andrew Buntine

new214
04-11-2007, 02:44 AM
I know about ubound fucntion with arrarys- however i need to know waht the syntax stands for for the other examples I gave- see below

Array( 2, iRowLoop)
Array(iColLoop, iRowLoop )
UBound(Array, 2 )

Ive tried a google search- but no luck. I havent got resources to books- but thats why I asked on here:confused:

Chikara
04-11-2007, 08:22 AM
This is hard to tell what is going on without seeing more code.

I think you are declaring a multi-dimensional array, then redeclaring it with new dimensions on the next line. UBound gives the maximum subscript. I'm assuming that UBound(Array, 2) will give you the last subscript in row 2?