sEventName | (String) Event name of the corresponding Pmf object. |
---|---|
sFuncId | (String) Identifier of registered event function.
- Allows removal of the function by the RemoveEvent method.
- Prevents duplicate registering of the same function.
- May contain any characters (this is not a system name).
- Must not be an empty string.
If this method is called with the previously registered identifier, then this method would fail and an error statement is added to into the global errors of the INFO system. |
Func | (Function) The event function will be called when the event is triggered. |
function onEditAccept(ev)
{
// ...
}
oPmf.AddEvent("onEditAccept", "sFuncId", onEditAccept);