Page 1 of 1

A problem about conbine two dictionarys

Posted: 25 Apr 2019, 05:47
by songdg

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.

Re: A problem about conbine two dictionarys  Topic is solved

Posted: 25 Apr 2019, 06:34
by Odlanir

Code: Select all

MsgBox % key "=" address[key] "=" value

Re: A problem about conbine two dictionarys

Posted: 26 Apr 2019, 01:39
by songdg
Odlanir wrote:
25 Apr 2019, 06:34

Code: Select all

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