| External Interfaces Reference | ![]() |
Determine if input is COM object
Syntax
Description
tf = h.iscom
returns logical 1 (true) if the input handle, h, is a COM or ActiveX object. Otherwise, iscom returns logical 0 (false) .
tf = iscom(h)
is an alternate syntax for the same operation.
Examples
Create a COM server running Microsoft Excel. The actxserver function returns a handle h to the server object. Testing this handle with iscom returns true:
Create an interface to workbooks, returning handle w. Testing this handle with iscom returns false:
See Also
| invoke | isevent | ![]() |
© 1994-2005 The MathWorks, Inc.