0

I'm trying to replace " with nothing.

bString = Replace(aString, """, "")

does not work.

It says 'sting constants must end with a double quote'

What do I do?

NubyShark
  • 143
  • 2
  • 11

2 Answers2

5

In VB.Net, double quotes are escaped by doubling them: """"

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
1

I've done this before with the character code -

bString = Replace(aString, chr(34), String.Empty)
Tim
  • 4,051
  • 10
  • 36
  • 60