[Lazarus] StringGrid1.LoadFromCSVFile problem

fecske fecske fecske95 at gmail.com
Thu Oct 22 23:18:58 CEST 2015


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
<nc-gaertnma at netcologne.de> wrote:
> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list