OleAutomation.invoke

Invokes a method on the OLE Object; the method has optional parameters. It is not necessary to specify all the optional parameters, only include the parameters for which you are providing values.

@param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the value for the ID can be obtained using OleAutomation.getIDsOfNames

@param rgvarg an array of arguments for the method. All arguments are considered to be read only unless the Variant is a By Reference Variant type.

@param rgdispidNamedArgs an array of identifiers for the arguments specified in rgvarg; the parameter IDs must be in the same order as their corresponding values; all arguments must have an identifier - identifiers can be obtained using OleAutomation.getIDsOfNames

@return the result of the method or null if the method failed to give result information

  1. Variant invoke(int dispIdMember)
  2. Variant invoke(int dispIdMember, Variant[] rgvarg)
  3. Variant invoke(int dispIdMember, Variant[] rgvarg, int[] rgdispidNamedArgs)
    class OleAutomation

Meta