Hasx

Description

When a graph window is active, the hasx function returns 1 if specified dataset vd is plotted against an X dataset in the active layer. If not, this function returns 0.

Note that vd may be plotted against an X dataset in one layer, but may be plotted against row number or incremental values in another layer. Thus, the active layer can affect the return value of this function. See the example below.

Syntax

int hasx(dataset vd)

Parameter

vd

a plot in the active layer of a graph window.

Return

Returns 1 if vd is plotted against an X dataset in the active layer. If not, returns 0. if input range does not exist, return -1

Example

col(A) = data(1,12);
col(B) = data(1,12);
plotstack iy:=((1,2),(<autoX>,2));
page.active = 1;
hasX(Book1_B) =;
page.active = 2;
hasX(Book1_B) =;