lostintheglades
Programmer
I am exporting data out to an Ascii file using the Write # statement. If a field has a quote in it it is enclosed by quotes which is fine. The problem comes when reading the data back in.
Rather that re-write the entire code to use a print # and then parse the string coming back in. I was going to use the INStr in a function to replace and quotes with a non keyboard character..(chr(143) for now)
I created a function and thought I'd try to call the function while doing the write
ie: write #1, remove_quotes(.field("field 1"
,remove_quotes(.field("field 2"
.......etc.
Instead all I get are blank fields. Has anyone ever tried anything like this or am I going to have to remove the quotes saving the new data to a variable.
Also...any idea as to why the input doesn't catch the quote when reading the data back in?
Rather that re-write the entire code to use a print # and then parse the string coming back in. I was going to use the INStr in a function to replace and quotes with a non keyboard character..(chr(143) for now)
I created a function and thought I'd try to call the function while doing the write
ie: write #1, remove_quotes(.field("field 1"
Instead all I get are blank fields. Has anyone ever tried anything like this or am I going to have to remove the quotes saving the new data to a variable.
Also...any idea as to why the input doesn't catch the quote when reading the data back in?