Add comments to your procedure
- Last Updated: October 14, 2024
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The final step in this exercise is to add some comments to your procedure to
make sure you and everyone else can follow what the code does. In ABL you can use /*
Multi-line comments */ or //
Single-line comments. For the multi-line comments type, you begin a comment with the
characters /* and end it with */. A comment can appear anywhere in your procedure where white space can appear
(that is, anywhere except in the middle of a name or other token). You can put full-line or
multi-line comments at the top of each section of code, and shorter comments to the right of
individual lines. Just make sure you use them, and make them meaningful to you and to others.
Here is the final procedure with a few added comments:
h-CustSample.p
|