Contents Previous Next Subchapters

Getting a Property of the Current COM object
Syntax copropget(property name)
property nameproperty arguments)
See Also copropput , coinvoke

Retrieves the value of a property in the current object specified by the character row vector property name. The specified property must exist in the current object. See the O-Matrix cowith and coendwith functions for an explanation of navigating object model hierarchies. If present, property arguments may be integer, real, or double precision matrices, logical scalars, or character row vectors. The values of method arguments are passed to property name.

The caption that Excel displays is stored as a property in Excel' root object, Application. If, at the O-Matrix prompt you enter
     print copropget("Caption")
O-Matrix will respond
     Microsoft Excel
which is the default application caption used by Excel.