May 15, 2002 #1 C Cheung Guest Do you know any function that change ' (single quote) to '' (2 single quotes) in a string?
May 16, 2002 #2 D divil Ultimate Contributor Joined Nov 17, 2002 Messages 2,746 Location England There aren't escape characters in VB.NET. You can use two double quotes ("") next to each other to have an inline double quote in a string, e.g. Code: strString = "This ""word"" is enclosed in double quotes."
There aren't escape characters in VB.NET. You can use two double quotes ("") next to each other to have an inline double quote in a string, e.g. Code: strString = "This ""word"" is enclosed in double quotes."
May 16, 2002 #3 C Cheung Guest Any function to do this for me? function input string = It isn't bad function output string = It isn''t bad Thx!
Any function to do this for me? function input string = It isn't bad function output string = It isn''t bad Thx!
May 16, 2002 #4 D divil Ultimate Contributor Joined Nov 17, 2002 Messages 2,746 Location England Oh, I misunderstood. Use the Replace() function.
May 16, 2002 #5 P Perl Guest Code: Dim MyString as String = "'Hello My Name Is Simon'" MyString.replace( "'", Chr(34) ) *Should Work* Or you could just write it out using Chr(34) but who wants to do that ?
Code: Dim MyString as String = "'Hello My Name Is Simon'" MyString.replace( "'", Chr(34) ) *Should Work* Or you could just write it out using Chr(34) but who wants to do that ?