<HTML><BODY>
In index 0 I have static values in program. Problem is that its enter values in columns that are not used now. And don't calculate values for rows 10 and 11. Please run the demo.<br><br><br><br><br>-------- Оригинално писмо --------<br>От: Jürgen Hestermann <juergen.hestermann@gmx.de><br>Относно: Re: [Lazarus] TStringGrid and array<br>До: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org><br>Изпратено на: Сряда, 2013, Февруари 6 19:07:19 EET<br><br><br><br>
Am 2013-02-06 15:23, schrieb Kamen Ketev:<br>
><br>
> sgW.Cells[j,i] := StrTest;<br>
><br>
><br>
<br>
Be aware that within sgW.Cells columns and rows start with index 0 and end with last_index-1.<br>
So the index number has to be one less than your selfdeclared arrays.<br>
<br>
<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="../servlet/sendmess?ac=sab&to=Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</lazarus@lists.lazarus.freepascal.org></juergen.hestermann@gmx.de></BODY></HTML>