 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 9th, 2008, 09:18 PM
|
|
Authorized User
|
|
Join Date: Aug 2006
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Replace the string has comma with spaces?
hi everybody..i need some help.
let say i have one string
"today, i eat, a, bread"
how can i count where is the comma and then i need to replace them with spaces?
is it just use Replace(str,","," ")?
plz help me..thanx
|
|

January 9th, 2008, 09:42 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Yes thats correct.
response.write replace("today, i eat, a, bread",","," ")
Did you try it before posting, seems like you already knew?
Wind is your friend
Matt
www.elitemarquees.com.au
|
|

January 10th, 2008, 03:50 AM
|
|
Authorized User
|
|
Join Date: Aug 2006
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by mat41
Yes thats correct.
response.write replace("today, i eat, a, bread",","," ")
Did you try it before posting, seems like you already knew?
Wind is your friend
Matt
www.elitemarquees.com.au
|
oops..soli..i jz wonder to know is there any other methods in vbscript to get it only.anyway, thanx
|
|

January 10th, 2008, 06:41 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
You are welcome. Im sure there is another way however this is the one I would use.
Wind is your friend
Matt
www.elitemarquees.com.au
|
|
 |