Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: about Map(), Object() what different?

$
0
0
One thing worth noting is that the choice doesn't have to be about Maps vs Object Literals. While Maps are defined by keys and values, Maps can have properties too. See below.

CODE:

Auto := Map('Make', 'Audi', 'Model', 'A5', 'Color', 'Blue')
Auto.Axles := 2
MsgBox Auto['Make'] '`n' Auto.axles ; Note that properties are not case-sensitive.

Statistics: Posted by iPhilip — 45 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles