Use the built in Replace VB function to replace any occurrence of one string or set of characters in a string with any other string or set of characters.
The syntax for the Replace function is:
Replace(string being manipulated, unwanted characters, alternative characters)
where unwanted characters are the characters (may only be one character, eg " or ') that you want to remove from your string, and alternative characters are the characters (again may only be one character, like a space) to be used in place of the unwanted characters.
So, if you have a variable, sString say, that holds the string [color blue]He said, "Hello".[/color] and you want to replace the double quotes with single quotes, then you would use the following line:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.