[Lazarus] TStringGrid and array

Kamen Ketev kamenlist at abv.bg
Thu Feb 7 07:48:47 CET 2013


 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.




-------- Оригинално писмо --------
От:  Jürgen Hestermann  
Относно: Re: [Lazarus] TStringGrid and array
До: Lazarus mailing list  
Изпратено на: Сряда, 2013, Февруари 6 19:07:19 EET




Am 2013-02-06 15:23, schrieb Kamen Ketev:

>

> sgW.Cells[j,i] := StrTest;

>

>



Be aware that within sgW.Cells columns and rows start with index 0 and end with last_index-1.

So the index number has to be one less than your selfdeclared arrays.







--

_______________________________________________

Lazarus mailing list

 Lazarus at lists.lazarus.freepascal.org 

 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130207/ff9331d4/attachment-0003.html>


More information about the Lazarus mailing list