Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Active - property of the PmEventItem object

Description:
Specifies whether event is active or inactive.
Syntax:
Boolean Active
Values:
true - reading: event is active, writing: activation of the event
false - reading: event is inactive, writing: inactivation of the event
Note:
Property access for read and write. When reading the value from the property, the immediate status of the event is detected. when writing the value into the property, the activation or inactivation of the event is made. Writing the value true into the property is identical with calling the Activate method without parameters.
See also:
Example1:
The next two examples show the same activity by two different ways:
JavaScriptVBScriptSelect and copy to clipboard

var oEv = pMe.Pm("/Event");
var oEvItem = oEv.Item("Temperature");
oEvItem.Active = value > 80;
Example2:
JavaScriptVBScriptSelect and copy to clipboard

var oEv = pMe.Pm("/Event");
var oEvItem = oEv.Item("Temperature");
if (value > 80)
oEvItem.Activate();
PROMOTIC 9.0.14 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