[Lazarus] StringGrid1.LoadFromCSVFile problem
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Oct 22 21:39:54 CEST 2015
On Thu, 22 Oct 2015 19:13:17 +0200
fecske fecske <fecske95 at gmail.com> 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
More information about the Lazarus
mailing list