Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 669

Off-Topic • Add Quote marks around commas in a text file with code

$
0
0
I am working on an App that takes input from a user and saves data in a csv file.
The fields don't require commas but users might put them in some of the fields such as Address data.
I don't want to require the user to not use commas. The data gets saved in a CSV file then imported to excel or numbers. If commas are included in the input data they need quotation marks around any commas in order maintain the integrity of the CSV data and include the commas in the final excel file.
HENCE MY QUESTION
How can I write the code to add quotation marks around the commas in the data, then save the data to a CSV file, then import the CSV file to excel(windows) or numbers (mac)?
Thanks for the help.

Tom Ragsdale

Statistics: Posted by trags3 — Fri Jul 26, 2024 1:05 am



Viewing all articles
Browse latest Browse all 669

Trending Articles