My associative array doesn't work Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
superpeter
Posts: 115
Joined: 18 Dec 2020, 05:17

My associative array doesn't work

25 Feb 2021, 01:05

Hi,

I'm learning about arrays and can't (even!) get the following associative array to work. I read the doc, but still don't get it. Thank you!

Code: Select all

array := {ten: 10, twenty: 20, thirty: 30}
msg := array[ten]
msgbox % msg
hd0202
Posts: 183
Joined: 04 Oct 2013, 03:07
Location: Germany near Cologne

Re: My associative array doesn't work  Topic is solved

25 Feb 2021, 01:13

Code: Select all

msg := array.ten
or

Code: Select all

msg := array["ten"]
Hubert

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk and 179 guests