Comments
Comments allow programmers to add text annotations to their code that are ignored by the compiler. They should be used to explain any code that isn't obvious by reading the code, so that anyone who works on this code in the future can make sense of it.
For example:
// I'm writing somewhat unusual code here and this is why.
Single Line Comments
A single-line comment is constructed by typing a double-slash (//) followed by the comment text. Any text following // on the same line is ignored by the compiler.
Examples of Single Line Comments:
// This is a comment
Move 100 to iCount // This is a commented assignment statement
Multi-Line Comments
Multi-line comments start with a forward-slash and asterisk (/*) and end with an asterisk and forward-slash (*/). Any text between /* and */ is ignored by the compiler.
Example of a Multi-Line Comment:
/* Multi-line comments are used for
large text descriptions of code */
You can also use multi-line comments to easily comment out larger chunks of code:
/*
Procedure ShowTheValue
String sMessage sTitle
Get Value of oForm1 to sMessage
Move "Value for Debugging" to sTitle
Send Info_Box sMessage sTitle
End_Procedure
*/