L
Laurie
When building class modules are there any naming standards for Property Let
and Get variables to help users of the object understand which properties
require setting and which are for reading? E.g.
Class Chair
The object may require the property to be read in this example
Public Property Get Height()
Height = vHeight
End Property
The object may require the property to be set in this example
Public Property Let Height (Height As Single)
vHeight = Height
End Property
So, how does the user know what to do with this?
Chair.Height
Is it better to name the property let:
Public Property Let WhatIsHeight (Height As Single)
vHeight = Height
End Property
Thanks
and Get variables to help users of the object understand which properties
require setting and which are for reading? E.g.
Class Chair
The object may require the property to be read in this example
Public Property Get Height()
Height = vHeight
End Property
The object may require the property to be set in this example
Public Property Let Height (Height As Single)
vHeight = Height
End Property
So, how does the user know what to do with this?
Chair.Height
Is it better to name the property let:
Public Property Let WhatIsHeight (Height As Single)
vHeight = Height
End Property
Thanks