A Andy B. Feb 27, 2009 #1 When is a good way to tell if you should allow a property to change a value or just to let a method do it?
When is a good way to tell if you should allow a property to change a value or just to let a method do it?
C Cor Ligthert[MVP] Feb 27, 2009 #2 As you can set the property by its value, then it is in my idea the best simple set a property to that value. If you need to use externals to set that property, then it is in my idea the best to use a method. Whatever.SetChangedDateTimeToCurrentRealTime ' should be a method Whatever.TheChangeDateTime = Now 'should be a property jmo Cor
As you can set the property by its value, then it is in my idea the best simple set a property to that value. If you need to use externals to set that property, then it is in my idea the best to use a method. Whatever.SetChangedDateTimeToCurrentRealTime ' should be a method Whatever.TheChangeDateTime = Now 'should be a property jmo Cor