var IntMap = null; var index = 0; // Insert Item function AddIntMap(val) { if (IntMap == null) IntMap = m_Map.GetUtility().GetIntIntegerMap(); IntMap.InsertItem(index, Number(val)); alert("Total Count : " + IntMap.GetItemCount()); index = index + 1; } // Delete Item function DelIntMap(key) { if (IntMap.FindItemValue(Number(key)) != null) { IntMap.DeleteItem(Number(key)); } } // Clear Item function ClearIntMap() { if (IntMap.GetItemCount() > 0 ) { IntMap.Clear(); } }
ÁغñÁßÀÔ´Ï´Ù...