I’ve decided to start writing (where relevant) LotusScript using classes. Never having written one I have a question.
Take the example below:
Class MyClass
Public Property Get x as string
'go and do a lookup in another db
Me.TheProperty = whatever I just looked up
End Property
Public Property Set x as string
x = Me.TheProperty
End Property
End Class
I am only familiar with Set properties where you would do something like:
Dim AClass as MyClass
AClass.X =“some string”
So what is the best/correct way of setting the value of a property within the class? Should it in fact be a private sub within the class which is called when the Get property is triggered?
I know this is probably a very basic question but any help would be great
Thanks