Promotic

onValueWrite - event of the PmaNumber object

Description:
The event is triggered after writing the value into this object.
Parameters:
pMe(Object) Reference to the PmaNumber object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
pEvent.Change - (Boolean) [for reading] Takes the following values:
true - If Old <> New
false - If Old = New
pEvent.New - (Double) [for reading] The value of the Value property after the last writing into this property.
pEvent.Old - (Double) [for reading] The value of the Value property before the last writing into this property.
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.Change)
{
Pm.Debug("OldValue=" + pEvent.Old + ", NewValue=" + pEvent.New);
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.