[Gambas-user] Dim two-dimensional dynamic array

Dag Jarle Nerland Johansen - Gambas gambas at cd-bahia.com
Thu Sep 2 13:56:58 CEST 2021

I didn't find how to declare a dynamic two-diemnsional array.
One-dimension I make like this:
Public arr As New String[]
and then simply use the add-method.

I see two-dimensions are declared like this
Dim arr As New String[3, 8]

I want to read in MySQL records in the arrays, because I repeat the use 
of them during the process of generating form and class, and that takes 
too much time, the programm got slow. And as I dont know how many 
records I get, I need it dynamicly. The same is for the amount of 
fields, different tables.

Thanks for any advice,

More information about the User mailing list