| | |
|
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Session Variables and Arrays |
From: |
Tim |
Date: |
3/12/1999 11:18:08 AM |
IP: |
207.51.162.13 |
Should have worked okay, but here is another example. Cut&Paste this into a document and view it to see how it works.
Dim YourArray(5,2)
Response.Write("<b>YourArray():</b><br>")
For Index = 1 to 5
YourArray(Index,1) = CStr(Index) & ", " & "1"
YourArray(Index,2) = CStr(Index) & ", " & "2"
Response.Write("YourArray(" & Index & ", 1) = " & YourArray(Index, 1) & "<br>")
Response.Write("YourArray(" & Index & ", 2) = " & YourArray(Index, 2) & "<br>")
Next
Session("sArray") = YourArray
FromSession = Session("sArray")
Response.Write("<br><b>FromSession():</b><br>")
For Index = 1 to 5
Response.Write("FromSession(" & Index & ", 1) = " & FromSession(Index, 1) & "<br>")
Response.Write("FromSession(" & Index & ", 2) = " & FromSession(Index, 2) & "<br>")
Next
|
Previous Message
|
|
|
|
|
|