# My Situation
I currently have a multi-dimensional array(2 dimensional) with several arrays as member
# What I did
Try to add new array to the 2d-array
# my source code
Code: Select all
; Case1: ✔️Works
Local_Array_2D = % [["a1", "a2", "a3", "hei"], ["b1", "b2", "b3"], ["c1", "c2", "c3"]]
MsgBox, % Local_Array_2D[1, 3]
; Case2: ❌Not Works
Local_Array_1 = % ["a1", "a2", "a3", "hei"]
Local_Array_2 = % ["b1", "b2", "b3"]
Local_Array_3 = % ["c1", "c2", "c3"]
Local_Array_2D_2.Push(Local_Array_1)
MsgBox, % Local_Array_2D_2[1, 3]
In Case2(push new member) I cannot access its member
# My question
is it grammarly correct to push array into 2d-array?
I can copy and overwrite member one by one but wonder if there are smarter way to do so without using brute force
# MISC
I googled for an hour and searched on forum, but found no answers
Thank you