.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET 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 July 25th, 2003, 07:22 AM
rajarao rajarao is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 rajarao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to read String delimited by semicolon in ASP file

I have string like raja;ravi;raksha,

how to get substring string delimited semicolon, it means I want extract raja, ravi and raksha in array in ASP.

Is there anything like StringTokenizer of JAVA in ASP

Please help me.
Rajarao

Reply With Quote
  #2  
Old July 25th, 2003, 11:18 AM
dcarva's Avatar
dcarva dcarva is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 633 dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 9 h 18 m 20 sec
Reputation Power: 6
Take a to look at http://www.c-sharpcorner.com/Code/2...gTokenizer.asp.

Download the ZIP file.

Reply With Quote
  #3  
Old August 5th, 2003, 01:30 PM
LeonJollans LeonJollans is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 27 LeonJollans User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
string[] arrNames = strNames.Split(';');
foreach (string name in arrNames){
//do something with the name
}

Reply With Quote
  #4  
Old August 9th, 2003, 03:28 AM
Ashish_SST Ashish_SST is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Ashish_SST User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dim arrStr = Split(raja;ravi;raksha)
Through this u will get an array arrStr(0) to arrStr(2)

Reply With Quote
  #5  
Old August 9th, 2003, 03:29 AM
Ashish_SST Ashish_SST is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Ashish_SST User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dim arrStr = Split("raja;ravi;raksha",";")
Through this u will get an array arrStr(0) to arrStr(2)

ashish agarwal

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > How to read String delimited by semicolon in ASP file


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 2 hosted by Hostway
Stay green...Green IT