External Interfaces Reference Previous page   Next Page
iscom

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

isinterface


Previous page  invoke isevent Next page

© 1994-2005 The MathWorks, Inc.