Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetExpr - method of object PmExpr

Description:
Sets an expression in the form of a text string.
Syntax:
SetExpr(sExpr As String) As Boolean
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:
The method can also be called in the graphic item events 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:
PROMOTIC 9.0.0 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