2.2.3.5.7 curvebase::HasX

Description

Checks whether or not this Curve object has an associated X data set.

Syntax

BOOL HasX( string & strXdatasetName = NULL )

Parameters

strXdatasetName
[output] Optional string to receive the X dataset name

Return

Returns TRUE if this Curve object has an associated X data set, otherwise FALSE.

Examples

EX1

// Assumes Book1_B exists and contains data
int curvebase_HasX_ex1(string dsName = "Book1_B")
{
    string dsXName;
    Curve crv(dsName);
    BOOL bHasX = crv.HasX(dsXName);
    if(bHasX)
        printf("The X dataset for Book1_B is %s\n", dsXName);
    else
        printf("There is no X dataset for Book1_B\n");
    return 0;
}

Remark

Checks whether or not this Curve object has an associated X data set.

See Also

Curve::Attach, Curve::Curve

Header to Include

origin.h