I am trying to declare arrays with myArray as integer[literal,literal] instead of DIM myArray[variable,variable]. But I am having some trouble understanding how to declare an array with variables. I can declare an array with literals, not variables, like myArray as integer[literal,literal], but not myArray as integer[variable,variable]. If I declare the array as myArray as integer[0,0] and then use myArray.length = 1920 (or a variable) and myArray[0].length = 1080 (or a variable), I can print(myArray.length) and get 1920 and print(myArray[0].length) and get 1080, but I can't set myArray[1,1] = 1, it says array out of bounds and that it is empty. I can declare myArray as integer[1920,1080] and then print(myArray.length] and then also get 1920 and print(myArray[0].length) and also get 1080, and now I can set myArray[1,1] = 1. I would like to able to set the array size with variables.
13/0