Тема: Malaysia: Map
Показать сообщение отдельно
Старый 29.10.2012, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
Malaysia: Map
Источник: http://axmas.blogspot.com/2012/10/map.html
==============


static void Collection_Map (Args _args)
{
// Create a new map with a key and value type
Map cars = newMap (Types :: Integer, Type :: String);
MapEnumerator mapE;

;
// Insert values to the map
cars.insert (1, "Volvo");
cars.insert (2, "BMW");
cars.insert (3, "Chrysler");
//Display the content of the map
info (cars.toString()) ;
// Get the enumerator to loop
// through the elements of the map
mapE = cars.getEnumerator();
while (mapE.moveNext())
{
info (strfmt ("Car %1: %2, mapE.currentKey(), mapE.currentKey());
}
}



Источник: http://axmas.blogspot.com/2012/10/map.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.