Hi
My question is conceptual, and is about the difference between a property and a public variable of a class.
Let's say I'm creating a new object class on a Class Module.
I can use
[vba]Dim MP As String
Property Let MyProperty(Value As String)
MP = Value
End Property
[/vba] or
[vba]
Public MyProperty As String
[/vba] In both cases, MyProperty is available from outside of the class.
What are then the advantages/disadvantages of them? In what cases is either one of them advisable over the other?
Thanks
Jimmy