How can I pass multiple parameters to a property let procedure?
Let's say I've two (2) string member variables
defined as follows:
Private m_s1 As String
Private m_s2 As String
I want to create a procedure to "set" these variables in the "TheClass"
class and so I code
Public Property Let SetVals(ByVal sStr1 As String, ByVal sStr2 As
String)
m_s1 = sStr1
m_s2 = sStr2
End Property
In the General Declaration on my form I code
Dim MyClass as TheClass
During Form Load I code
Set MyClass = New TheClass
MyClass.SetVals ("AA","BB") ' And god knows how many variations!!
.
.
No matter what variation on MyClass.SetVals I use (= sign, (), etc.) I
get either compilation or run-time errors.