RosettaCodeData/Task/Arrays/AutoHotkey/arrays-1.ahk
2013-04-10 14:16:51 -07:00

7 lines
181 B
AutoHotkey

myArray := Object() ; could use JSON-syntax sugar like {key: value}
myArray[1] := "foo"
myArray[2] := "bar"
MsgBox % myArray[2]
; Push a value onto the array
myArray.Insert("baz")