Promotic
WikipediaLinkedInYoutubeTwitterFacebook

ReturnValue - property of object PmiRoot

Description:
The output value on closing the panel.
Syntax:
ReturnValue As Variant
Calling:
oRoot.ReturnValue = Array(r0, r1, r2)
Note:
Property access for read and write.

This property is also functional for Web Panels.

 
Defining this method is often important, for example, if opening a modal window for data editing. The ReturnValue property is then used as output value.

See How to work with modal windows.

 
If the OpenView method vas used to open this panel and the oExtra.onClose entry was defined then while closing this panel the user method defined here is executed. This user method has two parameters oSystem and oPrivate represented by PmMap type objects. The output value of the closed pan can be obtained in this method by using the oSystem.ReturnValue property.
 
For the old procedure of modal window opening by the PmPanel.OpenViewModal method, this value is used as method return value.
 
This property can be set, for example, in the onPanelStopEnd event when the panel is being closed. But it can also be set any time before that.
See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice