curvebase::CopyX

Description

It copies x values from cbSource.

Syntax

bool CopyX( curvebase & cbSource )

Parameters

cbSource
[input] the source curve

Return

TRUE for success, otherwise FALSE.

Examples

EX1

void curvebase_CopyX_ex1()
{
    // The example assumes that the worksheet "book1" exists with four columns
    // A, B, C, D, and some values in them.
    Curve    crvData("book1_a", "book1_b");
    Curve    crvBaseline("book1_c", "book1_d");
    
    BOOL    bOK = crvBaseline.CopyX(crvData);
    out_int("OK = ", bOK);
}

Remark

See Also

DataRange::GetData, DataRange::GetNumData, DataRange::GetMaskedData, DataRange::GetMissingData

header to Include

origin.h