Android Question Array: how to initialize a 2-dim array

Helmut.J.

New Member
Licensed User
Longtime User
hello together,

I want to initialize a 2-dimensional array with some fixed data like
dim array(3,2) as int = ((1,2),(2,3),(3,5))

But it doesnt work... any help?

Thanks in advance
Helmut.J
 

derez

Expert
Licensed User
Longtime User
The Array keyword works for one dimension, see documentation\keywords\array:
Array
Creates a single dimension array of the specified type.
The syntax is: Array As type (list of values).
Example:
Dim Days() As String
Days = Array As String("Sunday", "Monday", ...)
 
Upvote 0
Top