|pMe||(Object) Reference to the graphic item where the event rises.|
|pEvent||(Object) A referrence to object describing detailed information about the specific event.|
pEvent.Reason - (String) Information regarding panel closing.
This value is transmitted from calling the PmiRoot.Close(sReason) method. If the panel is not closed by the PmiRoot.Close method, then the value is an empty string.
This can be used, for example, if the panel is open as modal window (see How to work with modal windows). If the modal panel is closed by the OK button, the PmiRoot.Close method sets the sReason parameter to, for example, "ok". The PmiRoot.onPanelStopEnd event it is possible to test this value and the correctly fill in the value PmiRoot.ReturnValue.
if (pEvent.Reason == "ok")
var text0 = pMe.Items("/text0").Value;
var text1 = pMe.Items("/text1").Value;
pMe.ReturnValue = Pm.CreatePmArray().Array1(text0, text1);