Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21349

Quotation marks in a text file

$
0
0
Hi folks:

I am working on an application that imports a csv file into a mysql database. Unfortunately whoever created the files that I am importing thought it would be a wonderful idea to use a quotation mark (chr$(34)) to abbreviate inches. You can imagine how much fun this is making the import routine.

I am looking for ideas on how to remove these characters from the file, since they are obviously compromising the resultant sql statement.

Replace does not work in this instance because the system sees the quotation mark as the end of field marker... it seems to override the comma.

All thoughts welcome!

Chris

Viewing all articles
Browse latest Browse all 21349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>