DADiSP Worksheet Functions > Function Categories > Query Functions > ISWINDOW
Returns 1 if input parameter is a Window.
ISWINDOW(val)
val |
- |
A series, scalar or string value to test. |
1 if the input is a window or window reference, else 0.
iswindow(W1)
returns 1
iswindow(W1 + 1)
returns 0 because the input is a series and not a window.
win = refwindow(w1)
iswindow(win)
returns 1 because the input refers to a window.
If the input is not a window or a window reference, iswindow returns 0.