Passing Reference Params to ActiveX Method 
Author Message
 Passing Reference Params to ActiveX Method

I've written an ActiveX object in VB, that returns values in reference
parameters passed into one of its methods.  When I script it in VBScript,
the variables passed into the method are assigned the expected values.  When
I do the same in JScript, the variables remain unassigned.  Is there some
way to make this work?

ie:
--------------------------------------------------------
' VB ActiveX Object Method:
Function GetResults( a as variant, b as variant) as boolean
    a = "Value 1"
    b = "Value 2"
    GetResults = true
end Function
--------------------------------------------------------
// Java Script:
var a, b;
if ( MyActiveXObject.GetResults( a, b )  ) {
    alert( "Results = " + a + ", " + b);

Quote:
}

// alert prints "Results = ,"


Thu, 09 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing Params by Reference to ActiveX Method

2. Passing values by reference from java / vb script to ActiveX object

3. Pass by reference from ActiveX to J-Script?

4. Passing JScript variables by reference to an ActiveX component

5. Passing values by reference from java / vb script to ActiveX object

6. Params By Reference in JScript?

7. Passing multiple params to VBScript from HTML

8. Passing params to driver from Ghostscript command line

9. Passing an object reference by reference where the object has a default property

10. Passing Params to StoreProcedures from VBScript

11. Components and VBScript, passing objects as params

12. PARAMS not getting passed in URL w/ ns4

 

 
Powered by phpBB® Forum Software