ev | (Object) Reference to an object that describes information about the event |
---|
function onStringChange(ev)
{
Pm.Debug("OldValue=" + ev.OldValue);
}
var oForm = pMe.Form;
var oString = oForm.CreateItem("string", "id_Str1", "String 1", "");
oString.Value = oForm.ClientType ? "PM Runtime" : "PM Develop";
oString.AddEvent("onEditAccept", "id_Str1", onStringChange);