B broxdz28967 New Member Jul 15, 2020 #1 Hi, I am trying to make a 2d array containing data like the following: (("00", "01", "02"), ("10", "11")) So that the 1st row will have 3 columns and the 2nd row will have 2. How would I do that? Otherwise, is there a better way to group some arrays of different sizes together with indices?
Hi, I am trying to make a 2d array containing data like the following: (("00", "01", "02"), ("10", "11")) So that the 1st row will have 3 columns and the 2nd row will have 2. How would I do that? Otherwise, is there a better way to group some arrays of different sizes together with indices?
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2020 #2 Lists are superior to arrays in most cases, including this case. B4X: Dim List1 As List = Array(Array("00", "01", "02"), Array("10", "11")) Dim SecondRow() As Object = List1.Get(1) Log(SecondRow(0)) Note that Array returns a read only list. Upvote 0
Lists are superior to arrays in most cases, including this case. B4X: Dim List1 As List = Array(Array("00", "01", "02"), Array("10", "11")) Dim SecondRow() As Object = List1.Get(1) Log(SecondRow(0)) Note that Array returns a read only list.