[[.COMObject {rcom}R Documentation

Read One of a COM Object's Properties

Description

Reads one of the COM object's properties.

Usage

## S3 method for class 'COMObject':
handle[[property,...]]

Arguments

handle COM object (class "COMObject") as returned by e.g. comCreateObject
property name of property to get as a character string
... optional additional arguments for property specification (e.g. index for an array)

Value

When reading a property, the return value depends on the (data) type of the property to read.

Author(s)

Gabor Grothendieck

See Also

comGetProperty, $.COMObject

Examples

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

# retrieve the "Visible" property
## Not run: v <- x[["Visible"]]

[Package rcom version 2.2-1 Index]