Is it possible to write comments and explanations right next to a program that will not mess up the running of the program-that macrosched will ignore, but that I can read- so that months later I can quickly pick up the reasoning and working of the program?
If this has already been dealt with elsewhere, please direct me to that explanation.
Are program annotations possible?
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
From the Help file:
//.............................................................;This is another comment example, offset to the right
But the important thing is that NO commenting can be on the same line. Even an extra space at the end of a line may cause unexpected results.
There is no feature for Block Comments, but that would be a good suggestion for including in a newer version. Maybe use /* and */ which are common in other script languages. Something like this:
Lumumba's example shows what has typically been accepted as a "normal" comment notation.Remark>Some Comment
The remark statement is ignored by the interpreter. It exists simply to allow comments to be placed in the code. In fact, any text that is not a recognised command can be used for this purpose.
//.............................................................;This is another comment example, offset to the right
But the important thing is that NO commenting can be on the same line. Even an extra space at the end of a line may cause unexpected results.
There is no feature for Block Comments, but that would be a good suggestion for including in a newer version. Maybe use /* and */ which are common in other script languages. Something like this:
/* This is the beginning
of a few lines of comments.
using Block Comment symbols to identify the range. */
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: