Map declaration

kcorey

Member
Licensed User
Longtime User
I saw I could declare an array like this:

dim arrName() as int
arrName = array as int(1,2,3,4,5,6,7,8,9)

Is there a way to do this with map as well, or must I do this:

dim mapName as Map
mapName.put("key1","value")
mapName.put("key2","value")
mapName.put("key3","value")
...

It surely seems long-winded.

It'd be great to be able to say:
dim mapName as Map("key1":"value","key2":"value","key3":"value")

-Ken
 
Top