<div dir="ltr"><div>You can even use array of labels...</div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 1:22 PM roberto <<a href="mailto:roberto.premoli@tiscali.it">roberto.premoli@tiscali.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi.<br>
<br>
i am doing a "sudoku" game.<br>
<br>
i have a matrix of 81 labels, from "label1" to "label81" as containers <br>
of the numbers (to show them to user)<br>
<br>
i have matrix to container of number (to "elaborate" them).<br>
<br>
To fill the textlabels  i have to do<br>
<br>
<br>
if matrix[1] <> 0 then label1.text=matrix[1]<br>
<br>
if matrix[2] <> 0 then label2.text=matrix[2]<br>
<br>
...<br>
<br>
if matrix[81] <> 0 then label81.text=matrix[81]<br>
<br>
<br>
also to clean or assign different background color, i have to write 81 <br>
times the same command on different labels.<br>
<br>
it will be HUGE better to have array of objects  to allow some the follow:<br>
<br>
<br>
for n = 1 to 81<br>
<br>
  if matrix[n] <> 0 then label[n].text = matrix[n]<br>
<br>
next<br>
<br>
At my eyes, absence of object arrays is the worsest weakness of gambas.<br>
<br>
<br>
PS: in past i did bigger programs with hundreds of labels and all of <br>
them must be worked one by one, it was a mess (doing cut and past and <br>
renumbering, it is so common to do a mistake).<br>
<br>
Getting older, i became less used to face this weakness.<br>
<br>
<br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
</blockquote></div>