Contents Previous Next Subchapters

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

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

Examples
If at the O-Matrix prompt you enter
     cocreate("Excel.Application")    
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.