SetExpr - method of the PmExpr object
Description:
Sets an expression in the form of a text string.
Syntax:
Boolean SetExpr(String sExpr)
Parameters:
sExpr | (String) Text expression in JavaScript syntax. For example:
"a+b"
etc. |
---|
Return value:
The method validates the syntax of entered expression. It does not check whether all the variables used in the expression have been defined (therefore the
SetVar method can be called after calling this method).
true - on success
false - on error
Note:
This method is also functional in
Web panels.
This method just sets the expression into the
PmExpr object so it can be later quickly evaluated. The evaluation itself can then be executed by the
Eval method.