I'm sure the answer is simple (but I've tried all combinations I can think of) and well documented here somewhere (but I haven't been able to find it).
With a simple array you use dim x() as int = (1,2,3) at declaration, but what if you want to initialise the data in a multi dimensional array, list or map and also if you want to initialise with a Type?
(I know you can interate to set the data so that's not what I'm looking for, just a simple way to set the data at declaration)
Thanks
With a simple array you use dim x() as int = (1,2,3) at declaration, but what if you want to initialise the data in a multi dimensional array, list or map and also if you want to initialise with a Type?
B4X:
Type mytype(a As Int, b As String)
Dim MyytpeToo() As mytype = {(3, "2"), (4, "5")}
Thanks