I try to feed an array in a loop for but it return me nothing when I launch the code to read it...
What's wrong?
![Shocked :shock:](./images/smilies/icon_eek.gif)
Code: Select all
; Create an array
myArray := []
; Add values to the array
i:=0
while(i<3)
{
i++
z:=i*3 ;my equation to feed the array
myArray.insert(%z%)
}
Sleep 500
; Loop through the array
for each, value in myArray {
; each holds the index
; value holds the value at that index
msgBox, Ittr: %each%, Value: %value%
}
return