|
| TalMap SDK Libary Reference |
| XIntIntegerMap::InsertItem |
| 키(Key)와 값(Value)을 쌍으로 하는 아이템을 추가합니다. |
|
|
|
|
Parameters
| |
| Key |
| 키(Key) |
| Value |
| 값(Value) |
|
|
|
|
Return Value
|
|
Remarks
| |
InsertItem 는 XIntIntegerMap 의 Method로 제공됩니다.
사용자는 이 메소드를 이용하여 XIntIntegerMap 개체에 키(Key)와 값(Value)을 쌍으로 하는 하나의 아이템을 삽입할 수 있습니다.
|
|
|
|
Example
| |
|
|
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();
}
}
|
|
|
|
|
|
|
|
|
See Also
|