I have the following error with the code below.
Run-time error 13
'this code lies within a form on a vb appliation it calls a dll that was also created by vb
Private Sub vbAppSub()
Dim array(1 to 5) as String 'note: if I change this line to variant I get rt error 381 Subscript out of range
array(1) = "a"
array(2) = "b"
array(3) = "c"
array(4) = "d"
array(5) = "e"
Dim objdll as object
Set objdll = CreateObject("mydll.class")
objdll.sendArray( array ) 'error is here
set objdll = nothing
'this code lies within a class module within a vb activeX dll
Public Function sendArray( passedArray() As Variant) As Boolean
'code here in never executed
My question is how can I send arrays to dll's? what kinds of arrays can I send? what kinds of arrays can I not send?