[fpc-pascal] TStringList - Strange quotation mark handling

Michael Van Canneyt michael at freepascal.org
Wed Aug 16 15:21:01 CEST 2017



On Wed, 16 Aug 2017, Gabor Boros wrote:

> Hi All,
>
> With the attached example program and data.csv I got the next result:
>
> 0 * 84392
> 1 * asfds
> 2 * hytr
> 3 * 43421454
> 4 * O
> 5 *  fdsfds
> 6 * 654645645 "O" fdsfsd
> 7 * hgfgfedw
> 8 * fg
> 9 * 321.544
> 10 * 89
> 11 * 0
>
>
> "O" fdsfds - broken into two parts which is bad from my POV. See 4 * O and 5 
> *  fdsfds. Why?

Because the quotes must be the first and last character of each string (or "cell").

As noted in another reply, set the quote character to something unused, and
it will disable (or circumvent) quoting altogether.

Michael.



More information about the fpc-pascal mailing list