How do I remove an embedded Double quotes

G

Guest

Hello:

I am reading from a CSV file into a variable.

The variable reads as ""My data"" since the file contains "My data"

How do I get rid of the embedded double quotes?

I tried
myString.Replace(chr(34), "")

It did not work even though Chr(34) occurs at 0 and 8.

Help would be appreciated.

venki
 
J

Jay B. Harlow

vvenk
myString.Replace(chr(34), "")
String.Replace is a function that returns a new value with any replacements.

Have you tried:

myString = myString.Replace(chr(34), "")
 
G

Guest

Jay:

How dumb could I be for overlooking such a simple mistake?

You are a Godsend! Thanks you.

venki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top