View Full Version : string character replace
isleshocky77
10-08-2002, 12:13 AM
If I wanted to change the space in a string to '_' how would I go about doin this. I tried
replace(" ",string,"_")
but this did not work. Thanks for any help.
JackFruit3D
10-08-2002, 12:49 AM
see if the following example helps
MyString = Replace("XXpXXPXXp", "p", "Y")
should replace all p's with Y's
Roy Sinclair
10-08-2002, 02:16 PM
You've got your strings in the wrong order, the following code will work:
replace(string," ","_")
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.