DADiSP Worksheet Functions > Function Categories > Data Type Conversion > CASTWINDOW
Explicitly casts the input to a window.
CASTWINDOW(val)
val |
- |
A scalar, series or table. |
A window.
setx(castwindow(1), 2.0, 4.0)
Sets the X plotting range of W1 to 2.0 and 4.0.
setx(castwindow("1"), 2.0, 4.0)
Same as above except the input is a string.
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.