A problem about conbine two dictionarys Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
songdg
Posts: 568
Joined: 04 Oct 2017, 20:04

A problem about conbine two dictionarys

25 Apr 2019, 05:47

Code: Select all

phone := {}
address := {}
name1 := "Jo"
name2 := "Tim"
address1 := "NewYork"
address2 := "London"
phone1 := 123
phone2 := 456
phone[name1] := phone1
phone[name2] := phone2
address[name1] := address1
address[name2] := address2

[b]For key, value in phone
   MsgBox %key% = address[%key%] = %value%[/b]
I want to display items like this "name->address->phone", but the code doesn't work.
Odlanir
Posts: 659
Joined: 20 Oct 2016, 08:20

Re: A problem about conbine two dictionarys  Topic is solved

25 Apr 2019, 06:34

Code: Select all

MsgBox % key "=" address[key] "=" value
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
songdg
Posts: 568
Joined: 04 Oct 2017, 20:04

Re: A problem about conbine two dictionarys

26 Apr 2019, 01:39

Odlanir wrote:
25 Apr 2019, 06:34

Code: Select all

MsgBox % key "=" address[key] "=" value
Thanks you very much.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], NinjoOnline and 203 guests