Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Eval - method of the PmExpr object

Description:
Evaluation of entered expression.
Syntax:
Empty Eval()
Note:
This method is also functional in Web panels.
See also:
- PmExpr.SetVar (method)
- PmExpr.SetExpr (method)
Example1:
JavaScriptVBScriptSelect and copy to clipboard

var val;
var oExpr = Pm.CreatePmExpr();
oExpr.SetExpr("a+b");
oExpr.SetVar("a", 3);
oExpr.SetVar("b", 2.5);
val = oExpr.Eval();

History:
Pm8.03.20: Created
PROMOTIC 9.0.15 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