isinterface - Is input COM interface

Syntax

tf = h.isinterface
tf = isinterface(h)

Description

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.

Remarks

COM functions are available on Microsoft Windows systems only.

Examples

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

h = actxserver('Excel.application');
h.isinterface

MATLAB software displays:

ans =
   0

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

w = h.get('workbooks');
w.isinterface

MATLAB displays:

ans =
   1

See Also

iscom, interfaces, get (COM)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS