My mistake everyone (blush,blush). That'll serve me right to expect
other people to debug my code!
While making up the test project, I found my mistake. I was trying to
access a non-existent object before it was created.
My apologies to everyone. There is no problem with the stringgrid
itself - in fact it works like a charm
Alex
Alex du Plessis wrote:
I'll make up a little project with the problem. Maybe that will help
David B Copeland wrote:
Hi Alex,
I can't think of anything else without seeing more of the code. I
remember having fun (ha, ha) figuring out how to use a TStringGrid.
Maybe the problem is related to the options (all the go... options,
goEditting for example) you have selected for the grid.
Dave.
On Wed, 2006-06-21 at 20:39 +0200, Alex du Plessis wrote:
Sorry Dave,
That's not it yet.
Here is my code:
StringGrid1.InsertColRow(false,1);//Notice it is creating a new line
at the top of the grid
StringGrid1.Col := 1;
StringGrid1.Row := 2;
And this works fine. The line is created at the top and the focus
moved to the second row. no problems there.
However, when you move to any cell in the newly created row (either
by clicking or keyboard) the access violation occurs?
Any thoughts?
Alex
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives