(VB) replace quotes in a string
Solved/Closed
Hélène
-
VB6 -
VB6 -
Hello!
I need to remove the quotes from a string. I tried this:
But it gives a syntax error.
How should I do it?
Thanks!
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!
Related links:
- VBA (Excel) - Delete a row
- VBA - Converting Text to Number
- Le terme "Envoie prêt chez l'expéditeur" signifie que le colis a été préparé et est prêt à être pris en charge par le livreur chez l'expéditeur.
- display a message in python ""
- Correction Python
- The secret word is not displaying, what can I do?
8 answers
-
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.