multi dimension arrays?

grgczyz

Member
Licensed User
Hi,

Does anyone know how to declare a two dimensions array of eg. integer numbers in B4A?

In basic4ppc there was s.th like this:

Dim dane11(0,0)
dane11() = Array ((0, 0, 0, 0, 0, 0, 6), _
(1, 1.5, 14.5, 13.5, 18.5, 17, 8), _
(8, 240, 0, 0, 2640, 2400, 0))

Please help me.

Greetings,
Greg
 

kickaha

Well-Known Member
Licensed User
Longtime User
The Array keyword only supports single dimension arrays, for multi-dimensions you would have to set the values seperately AFAIK.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Would in this case the use of a variable be possible?
something like_

B4X:
Dim Prod( Vilalist.count,4) as int
n= 2
Prod(Vilalist.get(n),2) = 100
 
Upvote 0
Top