GETN_ADD_INT_MAP

 

Name

GETN_ADD_INT_MAP

Declaration

#define GETN_ADD_INT_MAP(_STR_INT_VALS)   _tmpSubNode.SetAttribute(STR_INTMAP_ATTRIB, _STR_INT_VALS);

Remark

To setup the int type value for the relative string in string list. If not set, the int value for the string in string list will begin from 0 and increment as 1.

Parameters

_STR_INT_VALS

Return

Examples

Ex1

#include <GetNbox.h>
void GETN_ADD_INT_MAP_ex1()
{
        vector<string> vs = {"t-Test", "Correlation", "NLSF","None"};       
        string strCombo;         
        strCombo.SetTokens(vs, '|');
         
        GETN_BOX(tr);  
        GETN_LIST(item, "", 3, strCombo)
        GETN_ADD_INT_MAP("2|3|11|0") 
        GETN_OPTION_DISPLAY_FORMAT(DISPLAY_EDITOR_LEFT)
         
        if( GetNBox( tr, "Title", "Description"))
                out_int("you have picked ", tr.item.nVal);
}

See Also

GETN_COMBO

header to Include

GetNbox.h

Reference