[fpc-pascal] TStringList - Strange quotation mark handling

Kevin Jesshope kevinofoz at gmail.com
Wed Aug 16 15:15:10 CEST 2017


Setting the quotechar to something impossible (linefeed, #0 etc) stops the
quote processing.

  SL2.QuoteChar:=#10;

results in

0 * 84392
1 * asfds
2 * hytr
3 * 43421454
4 * "O" fdsfds
5 * 654645645 "O" fdsfsd
6 * hgfgfedw
7 * fg
8 * 321.544
9 * 89
10 * 0

Regards

Kevin Jesshope - In Touch Computer Support
Supporting Aberfoyle Hub R-7 and Happy Valley Primary Schools

On Wed, Aug 16, 2017 at 9:58 PM, Gabor Boros <mlnglsts at bgss.hu> 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?
>
> Gabor
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170816/aac54011/attachment.html>


More information about the fpc-pascal mailing list