Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Close - method of the PmForm object

Description:
Close form viewer.
Syntax:
Empty Close(String sReason)
Parameters:
sReason(String) Identifier of 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.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice