Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


List Items from a string

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> List Items from a string
  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 >>
 List Items from a string - 10/1/2001 9:55:11 AM   
  braker12

 

Posts: 1
Score: 0
Joined: 10/1/2001
From:
Status: offline
Does anyone a way to populate a list box using a comma delimited text string? The page needs to read a comma delimited string of items from a database and then build list boxes populated with the items listed in the string. Any help would be most appreciated.
 
 
Post #: 1
 
 Re: List Items from a string - 10/1/2001 11:27:06 AM   
  imav8n

 

Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
Try using:

Split(String, ",")

This will break up the string into an array using the comma as the delimiter. Then just loop through the array to create your list.

For more info on Split(), try this link:
http://www.devguru.com/Technologies/vbscript/quickref/split.html

Good Luck!

~imav8n

(in reply to braker12)
 
 
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 >> List Items from a string 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