Passing an Array of Variants to an ActiveX control 
Author Message
 Passing an Array of Variants to an ActiveX control

The code below produces a variant (parms) that has a VT_DISPATCH vt_type,
rather than the expected VT_ARRAY+VT_VARIANT. (An equivalent call from a
VisualBasic 5.0 program produces the expected.)

Why does the JScript code do what it does? How can the programmer know in
advance what JScript data types will produce when passed to a control?

 oIefuns = document.createElement("<OBJECT ID='ieaxmfc'
CLASSID='CLSID:37DB79DA-EF57-11D3-86BF-00508B104D2E' ></object>");
   var SW_SHOWNORMAL = 1;
   var parms = new Array(5);
   parms[1] = "properties"; // verb
   parms[2] = path; // Path to file whose Properties are to be displayed
   parms[3] = ""; // parameters to pass [none]
   parms[4] = SW_SHOWNORMAL;

Sat, 14 Sep 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Trying to pass a Variant Array of Doubles to ActiveX from HTML

2. Passing arrays to an ActiveX control

3. How To Pass JScript Array to ActiveX Control

4. converting Array to Variant and Variant to Array

5. Passing a variant to a methos in an ActiveX object

6. Accessing an ActiveX control property that is a variant

7. C++ ActiveX Property returns VARIANT Array of BSTR for VBScript or JavaScript

8. Passing variant containing byte array

9. Passing a variant array from asp to a cls and back

10. Problem passing a variant array out of VBasic object to ASP

11. Passing variant array from VBScript to ATL

12. How does a WSH pass a Variant array to a script


Powered by phpBB® Forum Software