CloseCOMControl()

Summary

Closes the window containing the COM control.

Changes

Added to Version 5.0.

Syntax

CloseCOMControl(string name)

Argument Contents
name The name of the COM control window

Notes

  • The control is closed without executing the Close() macro.

Example

name = CreateCOMControl("My Control", "Shell.Explorer", {
{"Event Macro", "Explorer Event Macro"}})
CloseCOMControl(name)

Error Codes

Error Type Meaning
NotFound A COM window was not found by that name

See Also

Function Summary
CreateCOMControl() Creates a new COM control window
CreateCOMObject() Creates a new instance of a COMObject
GetCOMCollectionObjects() Gets the COM objects in a COM collection
GetCOMControlObject() Gets the COM interface of a COM control window
GetCOMInterfaceName() Gets the name of the COM interface for an object from the type library
GetCOMObject() Gets the currently active instance of a COMObject
SetCOMControlTitle() Sets the title of a COM control window.