CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Arrays as session variables in ASP??

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.