|
 |
asp_databases thread: writing out arrays
Message #1 by imran.saleem@b... on Mon, 2 Dec 2002 18:58:15
|
|
Guys,
do you have any sample scripts or any ideas on how i could write out
2 dimensional arrays that are contained within a 1 dimensional array.
Thanks in advance for your help
Message #2 by "Kim Iwan Hansen" <kimiwan@k...> on Mon, 2 Dec 2002 22:10:53 +0100
|
|
Where arrContainer is a one-dimensional array containing an unknown number
of two-dimensional arrays:
for i = 0 to ubound(arrContainer)
for j = 0 to ubound(arrContainer(i),1)
for k = 0 to ubound(arrContainer(i),2)
response.write(arrContainer(i)(j,k) & "<br>")
next
next
Response.Write("<hr>")
next
This bit of code is untested, but it should give you the idea anyway.
-Kim
-----Original Message-----
From: imran.saleem@b... [mailto:imran.saleem@b...]
Sent: 2. december 2002 18:58
To: ASP Databases
Subject: [asp_databases] writing out arrays
Guys,
do you have any sample scripts or any ideas on how i could write out
2 dimensional arrays that are contained within a 1 dimensional array.
Thanks in advance for your help
Message #3 by imran.saleem@b... on Tue, 3 Dec 2002 10:12:10 -0000
|
|
thanks kim, much appreciated.
-----Original Message-----
From: Kim Iwan Hansen [mailto:kimiwan@k...]
Sent: Monday, December 02, 2002 9:11 PM
To: ASP Databases
Subject: [asp_databases] RE: writing out arrays
Where arrContainer is a one-dimensional array containing an unknown number
of two-dimensional arrays:
for i = 0 to ubound(arrContainer)
for j = 0 to ubound(arrContainer(i),1)
for k = 0 to ubound(arrContainer(i),2)
response.write(arrContainer(i)(j,k) & "<br>")
next
next
Response.Write("<hr>")
next
This bit of code is untested, but it should give you the idea anyway.
-Kim
-----Original Message-----
From: imran.saleem@b... [mailto:imran.saleem@b...]
Sent: 2. december 2002 18:58
To: ASP Databases
Subject: [asp_databases] writing out arrays
Guys,
do you have any sample scripts or any ideas on how i could write out
2 dimensional arrays that are contained within a 1 dimensional array.
Thanks in advance for your help
|
|
 |