dblayout
|
| Posted: 07/21/2003, 9:52 PM |
|
Is it possible to have an array as a session variable (item_no(1), item_no(2), etc)? If yes, are there some ASP examples somewhere?
Thanks
Chris
|
|
|
 |
Blinky Bill
|
| Posted: 08/03/2003, 6:24 AM |
|
Chris,
Don't see why not. I'm too lazy to write the test code but the following should work.
Dim MyVar(2)
MyVar(0) = 1
MyVar(1) = 2
MyVar(2) = 3
Session("testarray") = MyVar
Dim NewVar
NewVar = Session("testarray")
Response.Write NewVar(0) & "<BR>"
Response.Write NewVar(1) & "<BR>"
Response.Write NewVar(2) & "<BR>"
You could also use the SPLT and JOIN functions.
|
|
|
 |
|