I was wondering is there a way to my "Problem":
Code: Select all
!q::
; works fine
arr1 := [1,2,3,4,5]
arr2 := [6,7,8,9,10]
arr3 := [11,12,13,14,15]
dictionary := {"Array1" : arr1 , "Array2" : arr2 , "Array3" : arr3}
for index, element in dictionary.Array1
msgbox, % element
;------------------------------------------------------------------------------------------------------
; is there a away to shorten this code to be something more like this:
dictionary := {"Array1" : arr1[1,2,3,4,5] , "Array2" : arr2[6,7,8,9,10] , "Array3" : arr3[11,12,13,14,15]}
; I want to have it in one line: to create and to store the information to arrays in the object
for index, element in dictionary.Array1
msgbox, % element
return
![Smile :)](./images/smilies/icon_e_smile.gif)
thank you in advance and have a nice saturday!
![Smile :)](./images/smilies/icon_e_smile.gif)