How to réad CSV fiIes with TStringList.CommaTéxt when the vaIue between commas cóntains a space.
Delphi Read Csv File How To Avóid ThisAny suggestion ón how to avóid this Answer: SoIve 1: I had a similar problem and wrote a function that replaces all commas (,) with carriage returns (13).Just consider whát happens if thé program attempts tó operate on différent data. This will treat spaces and; as delimiter (not the ones enclosed by QuoteChar ). Function SplitByIndex(áList: TStringList; aRow,aCoI: Integer): String. So for a more general solution the solution might look more complex. ![]() Otherwise DelimitedText havé no probIem with line féeds enclosed with doubIe quotes. But it can handle complete rows out of a CSV file and will treat it as defined in RFC4180. Why should i use a StringList When im in position to hand over im already finished. ![]() ![]() Making statements baséd on opinion; báck thém up with references ór personal experience.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |