2.1.7.15 okxf_resolve_tree_get_data_into_vector


Description

Gets data from the range contained in the tree

Syntax

BOOL okxf_resolve_tree_get_data_into_vector( TreeNode * pTr, vectorbase * pV, vectorbase * pVx = NULL )

Parameters

pTr
[input] point to the TreeNode containing the range data
pV
[output] it receives the data in range
pVx
[output] if not NULL returns the X range data if there is

Return

TRUE if successful otherwise FALSE

Examples

EX1

#include <GetNbox.h>
#include <xfutils.h>

void okxf_resolve_tree_get_data_into_vector_ex()
{
    GETN_BOX(trRoot)
    GETN_INTERACTIVE(interactive, "Data Range", "[Book1]Sheet1!B")
    if ( GetNBox(trRoot) )
    {
        out_tree(trRoot);
        
        TreeNode trRange = trRoot.interactive;
        
        vector vx, vy;
        okxf_resolve_tree_get_data_into_vector(&trRange, &vy, &vx);
    }
    return;
}

Remark

See Also

okxf_resolve_tree_construct_range

Header to Included

xfutils.h

Reference