DataRangeEx::Save

Description

Save current changes to the DataRange object.

Syntax

bool Save( )

Parameters

Return

True for success; otherwise false.

Examples

Ex1

//Save current changes to the DataRange object. 
void DataRangeEx_Save_Ex1()
{
    //assume the active workbooka sheet and has least four columns before run this code.
    Worksheet wks = Project.ActiveLayer();
    if ( !wks )
    {
        printf("Can not find any active worksheet!");
        return;
    }
    DataRangeEx dr;
    dr.Create();//init the object
    dr.Add("X", wks, 0, 0, -1, 0);
    dr.Add("Y", wks, 0, 1, -1, 1);    
    if(dr.Save())
        out_str("Save datarange success!");
    return;
}

Remark

See Also

header to Include

origin.h