ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 11th, 2000, 12:03 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
How can I declare an array of session variable?

<i><b>Originally posted by : Steven Ai (steven@easymultimedia.com)</b></i><br /><br />How can I declare an array of session variable?<br />when i declare like below it me a error: Type mismatch<br /><br />Session.Contents("CAR")(60)

Reply With Quote
  #2  
Old April 12th, 2000, 02:12 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Nagaraju Sathrasala,Span Systems Corporation (nag_sathrasala@hotmail.com)</b></i><br /><br />To create a session-scope array, the first step<br />is to create page level array in vbscript using<br />the dim key word. look into following example:<br /><%<br />dim alocalTemp(2)<br /><br />alocalTemp(0) = "CAR"<br />alocaltemp(1) = 60<br />alocaltemp(2) = "Ford"<br /><br />session("aSessionArray") = alocalTemp<br />%><br />now this session variable will aviliable to<br />any other pages.<br /><br /><%<br /><br />if isarray(session("aSessionArray")) then<br /> response.write "Session scope array is success"<br />end if<br />%><br /><br />let me know if u have any problems.<br />------------<br />Steven Ai at 4/10/2000 10:03:53 PM<br /><br /><br />How can I declare an array of session variable?<br />when i declare like below it me a error: Type mismatch<br /><br />Session.Contents("CAR")(60)

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > How can I declare an array of session variable?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT