Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetExpr - method of object PmExpr

Description:
Sets an expression in the form of a text string.
Syntax:
Boolean SetExpr(String sExpr)
Calling:
PmExpr.SetExpr(sExpr)
Parameters:
sExpr(String) Text expression in JavaScript syntax. For example:
"a+b"
"bbb + 10 * oDat.Item('Temperature').Value"
etc.
Return Values:
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 can be called after this method has already been called).
true - on success
false - on error
Note:
This method is also functional for 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.
See also:

History:
Pm8.03.20: Created
PROMOTIC 9.0.5 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice