Contents Previous Next Subchapters

Setting a Property in the Current COM object
Syntax copropput(property name)
property nameproperty arguments)
See Also copropget , cowith , coinvoke

Sets a property value of the current object, specified by the character row vector, property name. The property specified by property name must be defined in the currently active object. See the O-Matrix cowith and coendwith commands for a description of navigating automation server object hierarchies.

The property arguments which are passed to the specified property name may be integer, real, or double-precision matrices, logical scalars, or character row vectors.

If at the O-Matrix prompt you enter
O-Matrix will start Excel. By default, the Excel automation server starts Excel as a background process without the user interface visible. If you wish Excel to be visible you may continue the above example by entering
     copropput("Visible", 1)
which sets the Excel.Application object property, Visible to 1.