(VB) replace quotes in a string

Solved/Closed
Hélène -  
 VB6 -
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

  1. blurk Posted messages 493 Registration date   Status Member 160
     
    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.
    13