I do apologise if I'm going to use the wrong terminology: I've tried to do my homework, but have limited understanding of both programming and the technical jargon.
I have a two-dimensional array, named Array2D, which has a variable number of sub -arrays.
I'd say it is an object-based, simple array (can a simple array be a multi-dimensional array?).
I want to use a loop to remove the first item of each of the sub-arrays in Array2D.
I though to use the method removeat().
As far as I know to use removeat() method on 2D arrays, one indicates the the "index" of the sub-array with a "dot+number+dot" just after the object name, as in the following example to remove the first item of the third sub-array: Arrayname.3.removeat(1)
In the loop I'd like to use a variable to indicate the "index" of the sub-array.
Something like the example I've pasted here below; needless to say, AHK does not seem to like this (Error: This line does not contain a recognized action.)
Code: Select all
Loop, 3
{
Array2D.%A_Index%.removeat(1)
}
Thank you!