DADiSP Worksheet Functions > Function Categories > Query Functions > ISWINDS

 

ISWINDS

Purpose:

Returns 1 if Window contains a saved series.

Syntax:

ISWINDS(win)

win

-

Optional. A Window, defaults to the current Window.

Returns:

1 if the window contains a saved series, else 0.

Example:

W1: gnorm(1000, 1)

W2: RUN1.1.ANALOG1

W3: integ(w2)

 

a = iswinds(w1);

b = iswinds(w2);

c = iswinds(w3);

 

Both a and c are 0 indicating the Window contains a derived series, i.e. a newly generated series or a series derived from an existing series. b == 1, indicating that W2 contain a series saved in a dataset.

Remarks:

ISWINDS checks if a Window exclusively contains a series saved in an existing dataset. The Window formula is parsed to check if the formula is in dataset.ver.series format.

 

See ISDSNAME to check if a string is in dataset.ver.series format.

See Also:

ISDSNAME

ISSTRING

LOADDATASET

LOADSERIES