Jump to content

Associative array/Creation: Difference between revisions

(associative arrays in autohotkey)
Line 189:
However, variable names can be concatenated, simulating associative arrays. Just without the syntactic sugar of '[]'.
<lang AutoHotkey>
arrayX%1%arrayX1 = first
arrayX%2%arrayX2 = second
arrayY%a%arrayX3 = foo
arrayY%b%arrayX4 = bar
loop, 4
{
Msgbox % arrayX%A_Index%
}
</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.