[Gambas-user] multi dimension integer array question

Fabien Bodard gambas.fr at gmail.com
Tue Nov 17 07:22:14 CET 2020


You can use an integer[][] to achieve that

Le lun. 16 nov. 2020 à 19:44, Tobias Boege <taboege at gmail.com> a écrit :

> On Mon, 16 Nov 2020, KKing wrote:
> > I'm currently creating an integer array thus
> >     Public intPixel As New Integer[199, 1999]
> > where I know that 199 (Rows) and 1999 (columns) are sufficient for my
> > current needs.
> >
> > But is there some way to "REDIM" on the fly if establish more rows or
> > columns are needed?
> >
>
> The word you are looking for is "RESIZE" and that [1] tells you:
>
>   (!) The array cannot be resized if it is multi-dimensional.
>
> [1] http://gambaswiki.org/wiki/comp/gb/array/resize
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201117/7807d7db/attachment-0001.htm>


More information about the User mailing list