|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
parse comma separated text
<i><b>Originally posted by : raj (rajkedda@hotmail.com)</b></i><br /><br />How do I separate a comma separated text into an array.<br />for example:<br />states=st1,st2,st3,st4,st5 <br /> to<br />states[1] = st1<br />states[2] = st2<br />...<br />states[i] =sti <br /><br />I would like to do this in ASP as the variable is also an asp variable<br /><br />Thanks<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Cander</b></i><br />dim strStates<br />dim states<br />strStates = "GA,FL,AL"<br />states = (strStates, ",")<br /><br />'This will be the result<br />states(0) = "GA"<br />states(1) = "FL"<br />states(2) = "AL"<br /><br /><br />------------<br />raj at 9/26/2000 10:57:22 AM<br /><br /><br />How do I separate a comma separated text into an array.<br />for example:<br />states=st1,st2,st3,st4,st5 <br /> to<br />states[1] = st1<br />states[2] = st2<br />...<br />states[i] =sti <br /><br />I would like to do this in ASP as the variable is also an asp variable<br /><br />Thanks<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > parse comma separated text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|