Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array withiin a array

Status
Not open for further replies.

funkydonkey2000

Programmer
May 29, 2003
12
0
0
AU
can you put an array within an array. For example:

dim outerArray(2)
dim innerArray(2)
innerArray(0) = "donkey"

outerArray(0) = innerArray

response.write outerArray(0,0)

I get "Subscript out of range"

anybody know why? or is this not possible
 
I did some testing. If I do:

dim outerArray(2)
dim innerArray(2)
innerArray(0) = "donkey"

outerArray(0) = innerArray

response.write outerArray(0)(0)

It works, it prints out "donkey"

cool, I never knew this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top