Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 883
  • Last Modified:

Replace double quote ('') with 2 double quotes ('''')

Hello - I am attempting to replace a set of double quotes with 2 pairs of double quotes..  I tried to use:

textLBL.Text = Replace(textLBL.Text, Chr(34),Chr(34)Chr(34))

but this is causing an exception.  any help on this would be greatly appreciated - vb pls

('') -> ('''')
0
egdigital
Asked:
egdigital
  • 2
1 Solution
 
Harisha M GCommented:
textLBL.Text = Replace(textLBL.Text, Chr(34),Chr(34) & Chr(34))
0
 
Harisha M GCommented:
You can also use "" instead of Chr(34)...

textLBL.Text = Replace(textLBL.Text, """","""""")
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now