DADiSP Worksheet Functions > Function Categories > Data Type Conversion > CASTWINDOW

 

CASTWINDOW

Purpose:

Explicitly casts the input to a window.

Syntax:

CASTWINDOW(val)

val

-

A scalar, series or table.

Returns:

A window.

Example:

setx(castwindow(1), 2.0, 4.0)

 

Sets the X plotting range of W1 to 2.0 and 4.0.

Example:

setx(castwindow("1"), 2.0, 4.0)

 

Same as above except the input is a string.

Remarks:

CASTWINDOW is helpful when writing SPL functions that require an explicit window input and the type of the variable passed into the function may not be a window.

See Also:

CASTCOMPLEX

CASTINTEGER

CASTREAL

CASTSERIES

CASTSTRING

REFWINDOW

STRWIN