Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export/Import memo fiield to CSV format

Status
Not open for further replies.

Khartoum

Programmer
Jun 30, 2012
11
AU
Anyone got any neat way of exporting/importing a CSV format into/out of a memo field?
I've done it, but not very elegant. The problem is that memo fields may contain CR/LF (<13,10>) combinations that. The only way I can figure is to parse through the memo field converting the CR/LF Combo to a comma. Then reverse the process by converting the comma back into a '<13,10>' again. Messy. (The reason is that the user needs to import/export into an excel spreadsheet at times. Each 'line' of the memo field needs to go into the next cell on the spreadsheet). As I say, have done it, but involves lots of 'IF THEN' and loops. As I said, messy and not elegant!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top