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

Compare with Current View Page History

Version 1 Current »

Removes a form by name.

Syntax

Send_Message(Ctrl, "OLE.RemoveNamedForm", Name, Destroy)

Parameters

ParameterDescription
NameThe unique name of the form to be removed.
DestroyDetermines whether or not the form should be automatically destroyed upon removal

Remarks

The RemoveNamedForm method removes a form that was embedded using the AddNamedForm 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.

Example

// Remove a form named "FORM_B" and destroy it 
Send_Message(@Window:".OLE_PANEL", "OLE.RemoveNamedForm", "FORM_B", 1)

See Also

ActiveForm, AddNamedForm, RemoveAllNamedForms

  • No labels