Comments in programing

devleigh

Member
Hi all

Is there a way to add comments when programing. It helps when you relook a program months later and wonder what you did and why

Regards
Leighton
 
Depends on the programming language, believe most of them do, in vb its the ' symbol, so anything in a line after a comma is ignored.
 
Depends on the programming language, believe most of them do, in vb its the ' symbol, so anything in a line after a comma is ignored.

Sorry I should have been more specific. I thought all content was related to HAI home automation. Im using PCAccess 3 and my query was relatied to that
 
Instead of "Add Automation Block", simply select "Add Comment Block" under the same drop down menu. Were it a snake, it would have bit you.
 
Sorry I should have been more specific. I thought all content was related to HAI home automation. Im using PCAccess 3 and my query was relatied to that

The general "Home Automation" board is for all types of systems. You can post a system-specific question, but you need to preface it with what system you're using. There is an HAI-specific area under "Marketplace", although it doesn't get as much traffic.

To answer your original question: When you click on the green + sign under the Automation tab, it will give you a pop-up to "Add Automation Block" or "Add Comment Block". Keep in mind that comments take up memory in the controller.
 
Looks like Anthony answered the question... you can click ADD COMMENT BLOCK - I like to add comments on most of my things so months/years from now when my program is big, i can take a peak at my comments to see what im doing rather then read the programming language
 
Sorry I should have been more specific. I thought all content was related to HAI home automation. Im using PCAccess 3 and my query was relatied to that

The general "Home Automation" board is for all types of systems. You can post a system-specific question, but you need to preface it with what system you're using. There is an HAI-specific area under "Marketplace", although it doesn't get as much traffic.

To answer your original question: When you click on the green + sign under the Automation tab, it will give you a pop-up to "Add Automation Block" or "Add Comment Block". Keep in mind that comments take up memory in the controller.

Gosh, ive clicked on there thousands of times and never noticed it. One thing though.... mine is greyed out and cannot be selected. Perhaps that is why i never noticed it.
 
What options are greyed out on your Edit menu? Add Comment Block (Ctrl+Alt+C) should not be.
 
Leighton, what controller and firmware are you running?

This one is the omnipro II with firmware 2.12B. i know thw version is old and probably time to upgrade but it has been working 100% and you know the old story... dont scratch wher is doesnt itch....
 
This one is the omnipro II with firmware 2.12B. i know thw version is old and probably time to upgrade but it has been working 100% and you know the old story... dont scratch wher is doesnt itch....

Ah, that's the problem. I don't think that firmware that old supports comment blocks. You really should upgrade -- there have been a ton of improvements to the programming language since that version.
 
This one is the omnipro II with firmware 2.12B. i know thw version is old and probably time to upgrade but it has been working 100% and you know the old story... dont scratch wher is doesnt itch....

Ah, that's the problem. I don't think that firmware that old supports comment blocks. You really should upgrade -- there have been a ton of improvements to the programming language since that version.

Youe are probably correct. I know there has been major improvements in later versions. I have ordered the latest version. Thanks for everyones feedback.
 
Back
Top