Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


collections in VBS?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> collections in VBS?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 collections in VBS? - 5/24/2001 4:56:02 AM   
  stevo

 

Posts: 1
Score: 0
Joined: 5/24/2001
From: United Kingdom
Status: offline
Hello Guys,
I am writing a generic object that i can use a all my progs which will automatically get the data stored in Request.Form or Request.QueryString, dimension properties with same name as the Name from the Name=Vlaue pairs, initialise those properties with the Value from the Name=Value pairs and validate all the data and redirect accordingly. Is there any way i can tie all these seperate properties together into a collection or an array so that i can use the For Each statment to iterate through properties.


sadfasdfadsf
 
 
Post #: 1
 
 Re: collections in VBS? - 5/24/2001 7:49:19 AM   
  hennykoe

 

Posts: 9
Score: 0
Joined: 5/23/2001
From:
Status: offline
Hi Stevo,
Welcome to the forum. Here is the code for that purpose (you can modify it to suit your need)

'create and initializing the array
Dim MyArray()
Redim MyArray(5)
MyArray(0) ="hello"
MyArray(1) ="some other string"

'store the array in the session object
session("storedarray") =myarray

'now retrieve the array from session object
localarray=session("storedarray")

'and then store the updated one back again
localarray(1)="there"
session("storedarray")=localarray

(in reply to stevo)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> collections in VBS? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts