Setting properties that take more than one arg (HELP)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My property set statement has multiple arguments because the matching get statement has multiple args 0 the rule is let/get have the same args, but with let having +1.

How can I assign the let property in the code? All the examples that I've been able to find are coded to a single argument, so it's like SET Category = RSCategory. What if I have more than one variable, as is allowed by the spec (hey, it compiled too :)

EG - Public Property Set Category(ByVal Var1 As String, _
ByRef Var2 As Variant, ByRef Var3 As Variant,ByRef Var4 As Variant, ByRef Var5 As Variant, ByVal rsNewValue As ADODB.Recordset).


In the calling code, how does the set statement look?

I can't do Set object.Category = rsCategory... VB errors out with the runtime error, "Argument not optional."

HELP!!!
 
Back
Top