Custom Class in LotusScript: A few more Question. Andrea Span 16.May.03 12:29 PM a Web browser Domino Designer -- LotusScript 5.0.9Windows 2000
I am testing my luck here. I am not sure if either Rod or Haydn will even respond to this as the thread is quite buried. But, anyway, I will try to stick to my original thread as it will help anybody with similar questions to get the answers in a single thread. If you do respond, Rod or Haydn, I thank you at the outset. Please note that I have read the help file, but examples of custom classes that I have come across has me thoroughly confused. Here are my questions.
1. Is it a good/bad programming practice to leave your Constructor Method empty. What I mean is, is it a good/bad practice to have something like this:
or is it always better to initialize at least a few objects in the Constructor Method. The reason I am asking the question is because I have come across numerous classes, writen by other developers, that do either of the two. a) Leave the Constructor Method blank, b) Initialize a few object even though they are not being used right away. In some cases they are not being used at all.
2. When to use the "Me" keyword in the script. It has been my experience, a very limited one too, that the keyword is being used arbitrarilly by programmers. Sometimes they use it sometimes they don't. What is the controlling factory behind using the "Me" keyword?
3. You (Rod and Haydn) have responded to all my questions. You folks have very detailed knowledge about classes, how/when to write and implement them and the guidelines to be followed while doing so. What I am suggesting may be silly, but would it be possible for you to write a tutorial with examples on writing Custom Classes using LotusScript. I wouldn't mind paying for it. There are a few tutorials out there, but they don't go into much details. Notes help is a great resource, but help files are, generally, structured in a way that leave a lot of questions to be answered.