Pass array from ASP to VB ActiveX DLL 
Author Message
 Pass array from ASP to VB ActiveX DLL

What is the proper syntax in both ASP and VB (ActiveX DLL) for 2 empty
arrays to be passed from ASP to VB, have them redimmed and then filled
with strings in the ActiveX DLL, then passed back to ASP?

In ASP I get this error

Type mismatch: 'Obj.Class1'

when make this call by using 2 as of yet undeclared/unused arrays

Obj.Class array1, array2

and in VB I have

Public Sub Class1(array1() As Variant, array2() As Variant)

    ReDim array1(2)
    ReDim array2(2)

    array1(0) = "Text1"
    array1(1) = "Text2"
    array2(0) = "Text3"
    array2(1) = "Text4"

End Sub

The DLL is successfully registered.

Thank you
Kyle

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Tue, 25 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing an array from ASP to VB 6 ActiveX component

2. Passing an array from ASP to VB 6 ActiveX component

3. Passing arrays from VB DLL to ASP

4. Passing an ASP DLL to a VB ActiveX component

5. How to pass Variant Array to VB ActiveX DLL from a VC++ application

6. passing arrays from VB.NET to vb6 activeX dll

7. Passing Arrays between ASP/VBScript and ActiveX Components...

8. Passing Arrays between ASP/VBScript and ActiveX Components...

9. Passing Arrays from ASP to ActiveX

10. Passing array from VB to DLL and returning array

11. Passing array from ASP (VBScript) to DLL and back

12. Passing an Array from an Active X .dll to ASP

 

 
Powered by phpBB® Forum Software