(VB) replace quotes in a string

Solved/Closed
Hello!
I need to remove the quotes from a string. I tried this:
laChaine = Replace(laChaine, """, "")

But it gives a syntax error.
How should I do it?
Thanks!

8 answers

  • Votes
  • Date
  • Descending date
  1. The "" are used to delimit a string and not to display quotation marks. To display or compare it, it needs to be expressed in ASCII code. The ASCII code for the quotation mark is 34
    asc() and chr() allow you to access the ASCII code of a character
    print chr(34) displays a quotation mark.
    asc(a) returns the ASCII code of a

    Best regards.