Code: Select all
x:=2
MsgBox,,,% "Text " ["text1 ","Text2 "][x] "Text3" ; bug - only shows Text3
MsgBox,,,% "Text " LTrim(["text1 ","Text2 "][x]) "Text3" ; shows Text Text2 Text3
z:=["text1 ","Text2 "]
MsgBox,,,% "Text " z[x] "Text3" ; shows Text Text2 Text3
If a direct associative array {...} is attempted for the first MsgBox, an error is shown 'Unexpected {'.