Hello,
I need to fill a 2d array with values. I have been using the code:
; Array Size
Local $NumRows = 5
Local $NumColumns = 7
Local $MyArray[$NumRows ][$NumColumns] = [["one1", "two1", "three1", "four1", "five1", "six1", "seven1"], _
["one2", "two2", "three2", "four2", "five2", "six2", "seven2"], _
["one3", "two3", "three3", "four3", "five3", "six3", "seven3"], _
["one4", "two4", "three4", "four4", "five4", "six4", "seven4"], _
["one5", "two5", "three5", "four5", "five5", "six5", "seven5"]]
This is fine until I need to have $NumRows = 267.
At this size I get errors which I'm guessing is due to the length of the 'line' of code.
Is there another way to define the elements of a 2d array other than setting each element individually?
Thanks.