It's not hard to write a work-around, as shown here, but I don't care for the added code & maintenance necessary.
Code: Select all
simple := { Name: "First", Home: "Second", Colour: "Third" }
text := "This is in the wrong order: `r`n`r`n"
for each, field in simple
text .= each ": " field "`r`n"
msgbox, % text
; --------------------------------------
index := { 1: "Name", 2: "Home", 3: "Colour" }
text := "This is in the correct order: `r`n`r`n"
for each, simplekey in index
text .= simplekey ": " simple[simplekey] "`r`n"
msgbox, % text