DADiSP Worksheet Functions > Function Categories > Variables > SETHOTVARIABLE
Sets a hot variable.
SETHOTVARIABLE("name", value)
"name" |
- |
A string. The name of the hot variable. |
value |
- |
A string, scalar, series or table, the value to assign. |
sethotvariable("RateOfChange", deriv(w1))
sets the hot variable, Rate_Of_Change, to the derivative of Window 1. Whenever Window 1 changes, the hot variable, Rate_Of_Change, will be updated.
Hot Variables are linked such that if the dependent value changes, then the value for the hot variable changes.
Hot variables can also be assigned with the syntax:
RateOfChange := deriv(W1)
A Window formula can also be assigned with the := syntax.
W1 := gnorm(1000,1)
This form is useful in SPL routines that must set explicit Window formulae.
SETHOTVARIABLE can be abbreviated SETHOTVAR.