A problem about conbine two dictionarys Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
songdg
Posts: 80
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: 370
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 7 Home Premium 64 bit - Autohotkey v1.1.24.02 64-bit Unicode
songdg
Posts: 80
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”

Who is online

Users browsing this forum: Google [Bot], HMKchris, Rohwedder and 148 guests