DIMENSION aArray[366,3] STORE 0 TO aArrayAt regular times I wished that I could qiuckly store different values for each column or just store a repeating patern in an array. You can make a loop to assign a value to each element, but i've found an easier and far more faster solution:
DIMENSION aArray[366,3] aARRAY[1,1] = 1 aARRAY[1,2] = 2 aARRAY[1,3] = 3 ACOPY(aArray, aArray, 1, (366 - 1) * 3, 4)The trick thus is to copy the array into itself where the destination element is equal to the source shifted by the length of the repeating values.
DIMENSION aArray[366,3] aArray=[0] ACOPY(aArray, aArray, 1, (366*3) -1, 2)also seems to be significatly faster than:
DIMENSION aArray[366,3] STORE 0 TO aArrayWalter,