Sets the formula for a Window.
SETWFORM(win, "formula")
win |
- |
Optional. Window reference. Defaults to current Window. |
||||||
"formula" |
- |
A string, any valid formula. A formula can be any command, function, or macro. The following are examples of valid formula types:
|
setwform("reverse(W1)")
calculates the expression reverse(W1) in the current Window and stores the formula in the current Window.
setwform(W2, "reverse(W1)")
explicitly sets the formula for W2.
SETWFORM is useful in SPL routines and custom menus executed by the MENUFILE function.
The := operator can also set a window formula. For example:
W2 := reverse(w1)
Is equivalent to : setwform(W2, "reverse(W1)")