GETN_RANGE

 

Name

GETN_RANGE

Declaration

#define GETN_RANGE(_NODE_NAME, _NODE_LABEL, _I0, _IMAX, _I1, _I2) _strTemp = range_to_str(_I1, _I2);_tmpSubNode = _tmpNode.AddTextNode(_strTemp, #_NODE_NAME, TRGP_RANGE);TREE_ADD_LABEL(_NODE_LABEL);_strTemp = (_I0);_strTemp+="|" + (_IMAX);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _strTemp);

Remark

Parameters

_NODE_NAME
_NODE_LABEL
_I0
_IMAX
_I1
_I2

Return

Examples

EX1

#include <GetNbox.h>
void GETN_RANGE_ex1()
{
    GETN_TREE(myTree)    
    
    GETN_STR(str,"String","abc")
    
    GETN_LIST(Type,"Color", 1, "Red|Blue|White")
    
    GETN_RANGE(Range,"Range",0,10,1,6)            
    
    if(GetNBox(myTree,"Test","OK",NULL,NULL))
    {
        out_str(myTree.str.strVal);
        out_int("",myTree.Type.nVal);
    }    
}

See Also

GETN_XYRANGE, GETN_XYRANGE_COMPLEX, GETN_XYZRANGE, GETN_INTERACTIVE

header to Include

GetNbox.h

Reference