problem with export CR or LF characters in Database column
Posted: Thu Aug 03, 2017 8:28 am
I have a problem with getting column data from a database that contains CR or LF characters and export this data to a CSV file excel import.
I have records in my DB with two columns that contains user entered text. That text contains line endings (CR or LF).
I need to export all columns of the selected records into a CSV file which is tab and CR delimited (tab for cells and CR for record endings) so I can import this file into excel.
In excel a linefeed in a cell is a char(10) code (ALT-Enter).
using results into a tab and CR delimited 'file' which make no destiction between record endings and user line endings.
And even if I do as a test I still cannot replace the user line endings with CHAR(10) for excel to understand.
Maybe I am on completely the wrong path ?
How can I solve this problem?
Regards,
Paul
I have records in my DB with two columns that contains user entered text. That text contains line endings (CR or LF).
I need to export all columns of the selected records into a CSV file which is tab and CR delimited (tab for cells and CR for record endings) so I can import this file into excel.
In excel a linefeed in a cell is a char(10) code (ALT-Enter).
using
Code: Select all
put revDataFromQuery(,,DatabaseID,tCmd) into tRes
And even if I do
Code: Select all
put revDataFromQuery(,"~",DatabaseID,tCmd) into tRes
Maybe I am on completely the wrong path ?
How can I solve this problem?
Regards,
Paul