Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

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:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 2nd, 2004, 05:49 AM
nedneath nedneath is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 nedneath User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Split URL string into array

Hello,

Via ASP, I import a long string containing records out of a database. The string look like:
value1,value2,value3*value1,value2,value3*value1,v alue2,value3* etc...

All these values need to be stored in an array; so all values 1 in colom1, values 2 in colom2 and values 3 in colom3

value1 value2 value3
value1 value2 value3
value1 value2 value3 etc...

I need to split based on ",'", but after every "*" it has to jump to the next record. Or a double split, first based on "*" and then based on ",". Can anybody help me!!!

Reply With Quote
  #2  
Old April 14th, 2004, 02:23 PM
Laoujin Laoujin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 15 Laoujin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
txt = "value1,value2,value3*value1,value2,value3*value1,v alue2,value3"

SplittedOnStar = Split(txt, "*")

For i = 0 To UBound(SplittedOnStar) - 1
NextSplit = Split(SplittedOnstar(i), ",")
Next i

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Split URL string into array


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 1 hosted by Hostway