M mhc Member Licensed User Longtime User Nov 5, 2010 #1 How can I declare (and use) a two dimensional array of integer? It seems that an array works only with strings. mhc
How can I declare (and use) a two dimensional array of integer? It seems that an array works only with strings. mhc
Erel B4X founder Staff member Licensed User Longtime User Nov 6, 2010 #2 Here is a 4 dimensional array of integers: B4X: Dim ManyNumbers(10, 10, 10, 10) As Int ManyNumbers(5,5,5,5) = 23 Note that there is no limit to the rank (number of dimensions) of an array. Upvote 0
Here is a 4 dimensional array of integers: B4X: Dim ManyNumbers(10, 10, 10, 10) As Int ManyNumbers(5,5,5,5) = 23 Note that there is no limit to the rank (number of dimensions) of an array.
U urikupfer Member Licensed User Longtime User Jul 15, 2012 #3 and how to declare dynamic multi dimensional arrays? uri Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 15, 2012 #4 Arrays are always fixed size. You can dim the array again if you want to change its size (it will also delete the current items). Upvote 0
Arrays are always fixed size. You can dim the array again if you want to change its size (it will also delete the current items).