ev.SrcObject | (Object) Pmf object where the event originated. |
---|---|
ev.OldValue | (Variant) The original value. |
The function is registered into the onEditAccept event.
var oForm = pMe.Form;
var oEnum = oForm.CreateItem("string", "id_Enum1", "Enum 1", "");
oEnum.AddRow(0.5, "slow");
oEnum.AddRow(9.9, "fast");
oEnum.Value = 0.5;
oEnum.AddEvent("onEditAccept", function(ev) { Pm.Debug("OldValue = " + ev.OldValue); });