|
TalMap SDK Libary Reference |
XIntStringMap::InsertItem |
Ű(Key)¿Í °ª(Value)À» ½ÖÀ¸·Î ÇÏ´Â ¾ÆÀÌÅÛÀ» Ãß°¡ÇÕ´Ï´Ù. |
|
|
|
Parameters
|
Key |
Ű(Key) |
Value |
°ª(Value) |
|
|
|
|
Return Value
|
|
Remarks
|
InsertItem ´Â XIntStringMap ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿© XIntStringMap °³Ã¼¿¡ Ű(Key)¿Í °ª(Value)À» ½ÖÀ¸·Î ÇÏ´Â ÇϳªÀÇ ¾ÆÀÌÅÛÀ» »ðÀÔÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
|
|
var IntStrMap = null;
var index = 0;
// Insert Item
function AddIntStrMap(str)
{
if (IntStrMap == null)
IntStrMap = m_Map.GetUtility().GetIntStringMap();
IntStrMap.InsertItem(index, str);
alert("Total Count : " + IntStrMap.GetItemCount());
index = index + 1;
}
// Delete Item
function DelIntStrMap(key)
{
if (IntStrMap.FindItemValue(key) != null)
{
intStrMap.DeleteItem(key);
}
}
// Clear Item
function ClearIntStrMap()
{
if (IntStrMap.GetItemCount() > 0 )
{
IntStrMap.Clear();
}
}
|
|
|
|
|
|
|
See Also
|