Script functions reference > Script functions in alphabetical order > C > COMInvoke

COMInvoke
Syntax
COMInvoke(strObjHandle, strMethodName, var_1 [, var_2, var_3, ...var_N], ReturnVar);
strObjHandle
strMethodName
var_1, var_2,...
ReturnVar
Description
Invokes the specified method for the COM component associated with the specified handle. The COMInvoke function can take several variables as arguments. All the variables must be defined in StreamServe scripts. Explicit values, or return values from other functions can not be passed directly to the COMInvoke function.
Returns
A number indicating whether the method was successfully invoked.
0
num<0
Example
$iRetVal=COMInvoke("objTest", "DocProcessed", $job_id, $doc_id, $nr_of_docs);
$iRetVal=COMInvoke("objTest", "FireNewJob");
OpenText StreamServe 5.6 Updated: 2013-03-01