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?
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.
There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…