[Gambas-user] how to write text in indexed list of labels

Jussi Lahtinen jussi.lahtinen at gmail.com
Mon Sep 7 14:44:30 CEST 2020


No, I meant:
Me["Label" & $iIndex].Text = "Pippo"


Jussi

On Mon, Sep 7, 2020 at 10:38 AM Gianluigi <bagonergi at gmail.com> wrote:

>
>
> Il giorno lun 7 set 2020 alle ore 01:20 Jussi Lahtinen <
> jussi.lahtinen at gmail.com> ha scritto:
>
>> IF that is all you are going to do, then no reason to declare the obj.
>>
>
> Hi Jussi,
>
> do you mean to suggest to write the code like this?
>
> Public Sub Button1_Click()
>
>   Dim hLabel As Label = Me["Label" & $iIndex]
>
>   hLabel.Text = "Pippo"
>
> End
>
> But that's not the same thing? We are always talking about an object.
>
> I feel it, I'll end up at the stake :-(
>
> Regards
> Gianluigi
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20200907/db4f47ed/attachment.htm>


More information about the User mailing list