getEventNameIDs {RDCOMEvents} | R Documentation |
This computes the names and the associated identifiers for a collection of methods in a COM event interface. When an event is broadcast to interested recipients, the identifier is used to indicate the particular event. This mapping of name-identifiers is used to identify the actual name of the event so that we can match it to a function in S.
getEventNameIDs(info)
info |
the ITypeInfo object that describes
the interface of interest. This is typically retrieved
using the SWinTypeLibs package. |
A named integer vector giving the integer values corresponding to the different event types and the associated names.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinRegistry
createCOMEventServer
getEventNameIDs
library(RDCOMClient) library(SWinTypeLibs) e = getCOMInstance("Excel.Application") lib = LoadTypeLib(e) e$Quit() library(RDCOMServer) i = lib[["IWorkbookEvents"]] RDCOMEvents:::getEventNameIDs(i)