Protects a Window from the effects of series propagation by isolating it from any dependence on other Windows.
PROTECT(win, "name")
win |
- |
Optional. A window. Defaults to the current Window. |
"name" |
- |
A string. The new title to be displayed in the Window caption. |
W3: W1 + W2
protect(W3,"Ultimate Sum")
replaces the formula in Window 3 with the name "Ultimate Sum", and if W1 or W2 are altered, W3 will not be affected.
To avoid confusion, protect a Window with a genuinely new name, rather than re-using the Window formula, e.g. protect(W3, "W1+W2"). This would make W3 look like a normal Window. Instead, use protect(W3, "PROTECTED W1+W2")
However, sometimes it is useful to protect the Window using the original formula. In this case, the Window does not automatically update, so the results are preserved until the formula is manually re-evaluated with the F2 or F3 key.
See PROTECTWIN to protect a window such that the original formula can be restored.