Removes the currently embedded form.
Syntax
rv = Send_Message(Ctrl, "OLE.RemoveForm", Destroy)
Parameters
Parameter | Description |
---|---|
Destroy | Determines whether or not the form should be automatically destroyed upon removal (OI 9 only) |
Remarks
The RemoveForm method removes a form that was embedded using the SetForm method. The Destroy parameter determines what is done with the form after removal. If set to true, then the form is immediately destroyed in the same way as if you were to call End_Window. If set to false, then the form is returned to a stand-alone OI form and is not longer embedded in the window. This parameter should not be used in OI 10, for it fails to execute OI 10 CLOSE logic.
Always call this before call SetForm if you are swapping forms in the SRP Panel Control.
Example
// Remove the current form and destory it Send_Message(@Window:".OLE_PANEL", "OLE.RemoveForm", 1)