External Interfaces Reference Previous page   Next Page

Determine if input is COM interface



tf = h.isinterface returns logical 1 (true) if the input handle, h, is a COM interface. Otherwise, isinterface returns logical 0 (false) .

tf = isinterface(h) is an alternate syntax for the same operation.


Create a COM server running Microsoft Excel. The actxserver function returns a handle h to the server object. Testing this handle with isinterface returns false:

Create an interface to workbooks, returning handle w. Testing this handle with isinterface returns true:

See Also

iscom, interfaces, get (COM)

Previous page  isevent load (COM) Next page

© 1994-2005 The MathWorks, Inc.