RosettaCodeData/Task/Associative-array-Iteration/AutoHotkey/associative-array-iteration...

7 lines
183 B
AutoHotkey

; Create an associative array
obj := Object("red", 0xFF0000, "blue", 0x0000FF, "green", 0x00FF00)
enum := obj._NewEnum()
While enum[key, value]
t .= key "=" value "`n"
MsgBox % t