X
xargon
Hi everyone,
I have a problem passing a class module instance to another class. I have
a class module as such:
Option Explicit
Private Items() As AquaInput
Private NumItems As Integer
' Add an item to the end of the array.
Public Sub Add(ByVal new_value As AquaInput)
' Add the new item.
NumItems = NumItems + 1
Items(NumItems) = new_value
End Sub
However, whenever I call this Add method from outside. it throws an error
that the Object does not support this property or method. However, it is
right there. The funny thing is that if I replace AquaInput with built in
type like String, it works fine!
What am I doing wrong here? It is killing me!
Thanks,
xargon
I have a problem passing a class module instance to another class. I have
a class module as such:
Option Explicit
Private Items() As AquaInput
Private NumItems As Integer
' Add an item to the end of the array.
Public Sub Add(ByVal new_value As AquaInput)
' Add the new item.
NumItems = NumItems + 1
Items(NumItems) = new_value
End Sub
However, whenever I call this Add method from outside. it throws an error
that the Object does not support this property or method. However, it is
right there. The funny thing is that if I replace AquaInput with built in
type like String, it works fine!
What am I doing wrong here? It is killing me!
Thanks,
xargon