
passing array from VBScript to Visual Basic ActiveX DLL
I have an array Data() in my
VBScript that I am trying to pass into
a function declared in
Visual Basic ActiveX DLL project compliled to
a DLL:
File: MyDebug.wsf
<job>
<script language="vbscript">
Dim Data(1,1)
Data(0,0)="1"
Data(1,0)="too"
Data(0,1)="3.0"
Data(1,1)="four"
Set obj = CreateObject("MyDebug.Debug")
obj.DoIt Data()
</script>
</job>
Visual Baisic Function:
Public Function DoIt(Data() As Variant) As String
DoIt = "Done"
End Function
I keep getting an error "Subscript out of range". How can you set things
up to pass an array between VBScript and a Visual Basic created ActiveX DLL?