I patch the lcsvutils.pas file based on LoadFromCSVStream: quote from here: https://github.com/graemeg/lazarus/commit/90eaed173991cdb8f8209726a71081299833392d
I compiled it in the ide but the problem still remains... this video presents the phenomenon https://youtu.be/GLXUkcrA-AA On Thu, Oct 22, 2015 at 9:39 PM, Mattias Gaertner <[email protected]> wrote: > On Thu, 22 Oct 2015 19:13:17 +0200 > fecske fecske <[email protected]> wrote: > >> I like to use the StringGrid1.LoadFromCSVFile() function. >> It works but also randomly set to a last line of strange characters >> >> >> In the CSV file normail view are not these characters. I checked csv files >> in hex viewer and are not these characters. >> >> >> I did a test, I wrote a Delphi code in a delphi IDE with unique function >> and stringgrid, and are not these characters.too. >> I use the same csv files. >> >> What's wrong in the LoadFromCSVFile() function? > > In LoadFromCSVStream.StorePart the Inc(leadPtr) needs to check if at end > of stream. I added that in revision 50144. > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
