Contents Previous Next Subchapters

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

Description
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.

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