I have a property Cmd defined as follows
Private _cmd As ADODB.Command
Public ReadOnly Property Cmd() As ADODB.Command
Get
Cmd = _cmd
End Get
End Property
However, when I try to use it like this:
y = x.Cmd("abc")
I get:
Overload resolution failed because no accessible 'Parameters' accepts this number of arguments.
However, this works:
y = (x.Cmd)("abc")
Can I change my property definition so that the user does not need the parens?