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

Reply via email to