Promotic

Close - method of the PmForm object

Description:
Closes form viewer.
Syntax:
Empty Close(String sReason)
Parameters:
sReason(String) Identifier of the form viewer closing method.
This identifier is then available:
- if viewer was opened by the Pm.CreateView method: in the ev.CloseReason property in the onClose event.
- (obsolete) if viewer was opened by the OpenView method: in the oSystem.CloseReason property in the oExtra.onClose event.
Note:
This method is also functional in Web panels.

This method is meaningful especially if the user wants to have own button (PmfButton) that closes the viewer with individual identifier.
Normally it is not necessary to use this method because the viewer can be closed by system buttons - see SysButtons property.
See also:
- PmForm.SysButtons (property)
Example:
JavaScriptSelect and copy to clipboard

oForm.Close("ok");

History:
Pm8.03.09: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.