comSetProperty {rcom}R Documentation

Set One of the COM Object's Properties

Description

Set one of the COM object's properties.

In case the property is an indexed property, pass the index value before the property value.

Usage

comSetProperty(handle,property,...)

Arguments

handle COM object (class "COMObject") as returned by e.g. comCreateObject
property name of property to get as a character string
... the value the property should be set to

Author(s)

Thomas Baier

See Also

comInvoke, comGetProperty

Examples

# start up excel
## Not run: x<-comCreateObject("Excel.Application")

# and make it visible
## Not run: comSetProperty(x,"Visible",TRUE);

# set the value of index 3 of the indexed property ArrayProperty
## Not run: comSetProperty(x,"ArrayProperty",3,TRUE);

# do something now...

[Package rcom version 2.2-1 Index]