Promotic

onValueChanged - event of the PmgNumber object

Description:
The event is triggered after change of the object value.
Parameters:
pMe(Object) Reference to the PmgNumber object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
pEvent.OldValue - (Variant) [for reading] Original value before editing.
Note:
The event is triggered after the finished editation is confirmed.
In order to trigger such event, it is necessary to enable the "Editing type" configurator.

This event is triggered only if the "Control enabled" configurator is checked.

This event is also functional in Web panels.

For direct data connection between this object value and the application variable it is much easier to use the data binding in the "Value" configurator. The onValueChanged event may be used only for more complex concepts of the value acquiring, or another reasons for difference recognition.
Example:
JavaScriptVBScriptSelect and copy to clipboard

Pm.Debug("OldNumber=" + pEvent.OldValue + ", NewNumber=" + pMe.Value);

History:
Pm9.00.16: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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