Sub Activity_Create(FirstTime As Boolean)
Dim grid(,) As Int = Create2DArray(3, Array As Int(1, 2, 3, 4, 5, 6))
'grid = 1, 2, 3
' 4, 5, 6
End Sub
Sub Create2DArray(RowLength As Int, Arr() As Int) As Int(,)
Dim rows As Int = Arr.Length / RowLength
Dim td(rows, RowLength) As Int
For r = 0 To rows - 1
For c = 0 To RowLength - 1
td(r, c) = Arr(r * RowLength + c)
Next
Next
Return td
End Sub