You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Removes the currently embedded form.

Syntax

rv = Send_Message(Ctrl, "OLE.RemoveForm", Destroy)

Parameters

ParameterDescription
DestroyDetermines whether or not the form should be automatically destroyed upon removal

Remarks

The RemoveForm method removes a form that was embedded using the SetForm method. The Destory 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.

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)

See Also

SetForm

  • No labels