[Gambas-user] Gambas error from 3.14

Jussi Lahtinen jussi.lahtinen at gmail.com
Mon Jan 13 14:16:11 CET 2020


It seems to be old bug. But you shouldn't use embedded arrays unless really
necessary.
This should work:

Private ctrl_dc As new Integer[7]
Public Sub _new()
   ctrl_dc[1] = 0
end

Jussi


On Mon, Jan 13, 2020 at 3:11 PM Marco Ancillotti <gambas at servinfo.it> wrote:

> Hi all,
>
> I update my ubuntu 18.04 and now some programs raise an error , they
> works perfectly before latest update.
>
> The code is like:
>
> Private ctrl_dc[7] As Integer
> Public Sub _new()
>    ctrl_dc[1] = 0
> end
>
> when I open the form it stuck saying ctrl_dc is read only.
>
> Should I change somethink on variable declaration ?
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200113/c9244fa8/attachment.html>


More information about the User mailing list