[Lazarus] StringGrid.loadFromCSVFile question

Koenraad Lelong lazarus2 at de-brouwerij.be
Tue Jun 2 10:42:26 CEST 2015


Op 01-06-15 om 15:30 schreef Bart:
> On 6/1/15, Koenraad Lelong <lazarus2 at de-brouwerij.be> wrote:
>
>> A few months ago I made an application that uses
>> StringGrid.LoadFromCSVFile. This worked.
>> Now, on a PC with a newer linux-OS, and a newer Lazarus/FPC, I try to
>> work further on that application but now the application from the
>> original sources crashes. It seems it can no longer automatically append
>> lines to a stringgrid. Error : index out of range Cell[Col=0, Row=x].
>> When I manually append lines (= in the IDE) the application can load
>> some more lines, but crashes when the grid-lines are all used.
>>
>
> Please attach a sample program and sample .csv to demonstrate the problem.
> Keep it as simple as possibe (1 grid, 1 button should suffice).
>
> Bart
>
I think I better open a bug-report.
I found what's the problem : I use two fixed rows.
When I tried to make that sample program I was surprised the minimal 
version worked, but then I added a second fixed row, and then it crashed 
also.

Koenraad.




More information about the Lazarus mailing list