| Maptitude GISDK Help |
Gets the COM interface of a COM control window.
Added to Version 5.0.
string = GetCOMControlObject(string name)
| Argument | Contents |
|---|---|
| name | The name of the COM control window |
A COMObject.
If name is null returns the interface for the control in the current window, or an error if the current window is not a COM control window.
name = CreateCOMControl("My Control", "Shell.Explorer", {
{"Event Macro", "Explorer Event Macro"}})
explorer_object = GetCOMControlObject(name)
explorer_object.Navigate("http://www.caliper.com")
| Error Type | Meaning |
|---|---|
| NotFound | A COM window was not found by that name |
| Function | Summary |
|---|---|
| CloseCOMControl() | Closes the window containing the COM control |
| CreateCOMControl() | Creates a new COM control window |
| GetCOMCollectionObjects() | Gets the COM objects in a COM collection |
| GetCOMObject() | Gets the currently active instance of a COMObject |
| GetCOMInterfaceName() | Gets the name of the COM interface for an object from the type library |
| ©2025 Caliper Corporation | www.caliper.com |