ActiveX.addMethodParam()


 

Availability

 

Windows

 

Usage

 

ActiveXinstance.addMethodParam(paramID:Number, paramType:String, paramValue:String):Void

 

Parameters

 

paramID:Number Integer ID of the Argument

 

paramType:String The Parameter Type

 

paramValue:String The Parameter Value

 

Returns

 

Nothing

 

Description

 

Will populate the argument list with values and types, for later use with activeX.runmethod

 

Notes

 

There can be a maximum of 10 parameters. Once declared, you can use activeX.runmethod in order to run the function

 

Example

 

We instantiate an ActiveX Instance which contains a method to be executed. This method has 2 parameters, a String and an Integer. To assign the Method Parameters, the command must be executed twice:

 

myActiveX.addMethodParam(1, "string", "John")

myActiveX.addMethodParam(2, "integer", 35)