J
jfp
I understand the basic concept of Property Let -- as in this from the VB
Help:
-=-=
The Property Let is defined In some class module:
Private IsInverted As Boolean
Property Let Inverted(X As Boolean)
IsInverted = X
If IsInverted Then
…
(statements)
Else
(statements)
End If
End Property
and it is then used in some other module as in
Object.Inverted = True
-=-=
OK.
My book on VB (VB&VBA in a NutShell) states that the definition of a
property Let can have more than one argument, with the last one being
the value to be assigned to the property -- sort of like :
Property Let Inverted(I As Integer, X As Boolean)
IsInverted = X
' also do some stuff with I
End Property
I have seen NO examples of what the call to the Property Let would look
like in this case - where would the other argument(s) go ?
Help:
-=-=
The Property Let is defined In some class module:
Private IsInverted As Boolean
Property Let Inverted(X As Boolean)
IsInverted = X
If IsInverted Then
…
(statements)
Else
(statements)
End If
End Property
and it is then used in some other module as in
Object.Inverted = True
-=-=
OK.
My book on VB (VB&VBA in a NutShell) states that the definition of a
property Let can have more than one argument, with the last one being
the value to be assigned to the property -- sort of like :
Property Let Inverted(I As Integer, X As Boolean)
IsInverted = X
' also do some stuff with I
End Property
I have seen NO examples of what the call to the Property Let would look
like in this case - where would the other argument(s) go ?