[Gambas-user] Dim two-dimensional dynamic array
Gianluigi
bagonergi at gmail.com
Thu Sep 2 16:29:42 CEST 2021
Il giorno gio 2 set 2021 alle ore 14:50 Tobias Boege via User <
user at lists.gambas-basic.org> ha scritto:
>
> In Gambas you can always create an array containing objects of type T
> by doing
>
> Dim a As New T[]
>
> Now, to get a two-dimensional array, make an array of arrays:
>
> Dim a As New T[][]
>
> You access one object via a[i][j] (_not_ via a[i,j]). And of course
> you can add new rows to a and new columns to a given row a[i] as you
> normally do with arrays.
>
> Best,
> Tobias
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
Hi Tobias,
I did not know that Gambas supported T-type objects, you may deepen the
topic, please. Thanks
Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210902/50a1654b/attachment.htm>
More information about the User
mailing list