I have a situation where I export data from a legacy database to a comma delimited file using " to designate text and this cannot be changed. I am then importing them into a tables for further use. There is one text file that has a situation where the characters ,", show up and it blows up the import for obvious reasons. I wrote some code to change the ,", to just ,, but it doesn't seem to work. There appears to be no change to the file. I have tried both STRTRAN & CHRTRAN and neither seems to work.
Here is what I have tried:
LOCAL lcMyString
lcMyString = FILETOSTR('c:\ftp\somast.txt')
STRTRAN(lcMyString, ',",', ',,')
STRTOFILE(lcMyString, 'c:\ftp\somast.txt')
Thanks in advance for any suggestions.
Here is what I have tried:
LOCAL lcMyString
lcMyString = FILETOSTR('c:\ftp\somast.txt')
STRTRAN(lcMyString, ',",', ',,')
STRTOFILE(lcMyString, 'c:\ftp\somast.txt')
Thanks in advance for any suggestions.