|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Split Method
<i><b>Originally posted by : meldrape (meldrape@hotmail.com)</b></i><br />Hi,<br /><br />Does any know the syntax for using the Split Method in ASP. I have a string, "A,B,C" that I want to split into "A", "B", "C" individually.<br /><br />I have the syntax for VB, but I can't seem to get it to work in ASP.<br /><br /><%<br />dim strlist<br />dim a_strlist<br />dim i<br /><br />strlist=Request.Form("list")<br />a_strlist=split(strlist, ",")<br />dim fs<br />set fs=createobject("Scripting.FileSystemObject")<br />fs.CreateFolder("c:"" & a_strlist)<br />%><br /><br />Thanks.<br /><br /><br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : uday (kuday99@mailcity.com)</b></i><br />Hi <br /><br /> I am giving simple example<br />dim str<br />dim a<br />dim i<br />str= "a,b,c,d,e,f"<br />a = split(str,",")<br />for i = 0 to ubound(a)<br />Response.Write (a(i)&"<P>")<br />next<br /><br />best of luck<br /><br />------------<br />meldrape at 5/18/2000 8:23:12 AM<br /><br />Hi,<br /><br />Does any know the syntax for using the Split Method in ASP. I have a string, "A,B,C" that I want to split into "A", "B", "C" individually.<br /><br />I have the syntax for VB, but I can't seem to get it to work in ASP.<br /><br /><%<br />dim strlist<br />dim a_strlist<br />dim i<br /><br />strlist=Request.Form("list")<br />a_strlist=split(strlist, ",")<br />dim fs<br />set fs=createobject("Scripting.FileSystemObject")<br />fs.CreateFolder("c:"" & a_strlist)<br />%><br /><br />Thanks.<br /><br /><br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : meldrape (meldrape@hotmail.com)</b></i><br />Excellent. thanks.<br /><br /><br />------------<br />uday at 5/18/2000 3:47:29 PM<br /><br />Hi <br /><br /> I am giving simple example<br />dim str<br />dim a<br />dim i<br />str= "a,b,c,d,e,f"<br />a = split(str,",")<br />for i = 0 to ubound(a)<br />Response.Write (a(i)&"<P>")<br />next<br /><br />best of luck<br /><br />------------<br />meldrape at 5/18/2000 8:23:12 AM<br /><br />Hi,<br /><br />Does any know the syntax for using the Split Method in ASP. I have a string, "A,B,C" that I want to split into "A", "B", "C" individually.<br /><br />I have the syntax for VB, but I can't seem to get it to work in ASP.<br /><br /><%<br />dim strlist<br />dim a_strlist<br />dim i<br /><br />strlist=Request.Form("list")<br />a_strlist=split(strlist, ",")<br />dim fs<br />set fs=createobject("Scripting.FileSystemObject")<br />fs.CreateFolder("c:"" & a_strlist)<br />%><br /><br />Thanks.<br /><br /><br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Split Method |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|