DataRange::BreakUp

Description

Remove all ranges in the DataRange.

Syntax

BOOL BreakUp( )

Parameters

Return

Examples

//Remove xy ranges in the DataRange.
void DataRange_BreakUp_Ex1()
{
        //assume there exists an active worksheet with two colulmns
        Worksheet wks = Project.ActiveLayer();
        if ( !wks )
        {
                printf("Can not find any active worksheet!");
                return;
        }
        DataRange dr;
        dr.Create();//init the object
        dr.Add("X", wks, 0, 0, -1, 0);//add the first column as x range
        dr.Add("Y", wks, 0, 1, -1, 1);
        
        if ( dr.BreakUp() ) //remove all ranges in it.
        {
                printf("DataRange is reset!");
        }
        else
    {
                printf("Fail to reset DataRange!");
    }
        return;
}

Remark

See Also

header to Include

origin.h