ev | (Object) Reference to an object that describes information about the event |
---|
function onCheckBool(ev)
{
Pm.Debug("OldValue=" + ev.OldValue);
}
var oForm = pMe.Form;
var oBool = oForm.CreateItem("bool", "id_Bool1", "Boolean 1", "");
oBool.Value = false;
oBool.AddEvent("onEditAccept", "id_Bool1", onCheckBool);