Forums
This topic is locked
Multiple Replace
Posted 23 Jan 2003 05:27:41
1
has voted
23 Jan 2003 05:27:41 Tony Chronopoulos posted:
Hello!to replace a character in a string, usually I do:
EX 1:
testString = "Jack and Jill went up the hill with both a buck and a quarter."
testString = Replace(testString,"Jack","Frank"
What if I want to replace Jill with Helen? Is there a shortcut that I can include everything in one syntax or do I have to repeat the above over again?
EX 2:
testString = "Jack and Jill went up the hill with both a buck and a quarter."
testString = Replace(testString,"Jack","Frank"
testString = Replace(testString,"Jill","Helen"
Basically, I want to make a little message board with formatting. So I need to replace [ b ], [ /b ], [ u ], [ /u ], etc..
Thanks,
Tony
Edited by - bloodtrain on 29 Jan 2003 02:55:07