[Gambas-user] Array's
Fabien Bodard
gambas.fr at gmail.com
Wed Apr 24 08:50:31 CEST 2019
for i = 0 to 3
Figures[i,0]=[1,3,5,7][i]
next
then without size maintain (and without instantiation) so the array will be
a (4,1) at the start
Figures = [[1],[3],[5],[7]]
Le mer. 24 avr. 2019 à 04:50, Shane <buster6seven at gmail.com> a écrit :
> I have this Array
>
> Private Figures As New Integer[4, 7]
>
> and I want to pre fill it with data
>
> so I do This
>
> Figures[0, 0] = 1
> Figures[1, 0] = 3
> Figures[2, 0] = 5
> Figures[3, 0] = 7
>
> is there a better way to do this in gambas that is like a short hand
> of this ?
>
>
> Cheers Shane
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
--
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190424/5e39517a/attachment.html>
More information about the User
mailing list