Commenting in the script
You can insert comments and remarks in the script code, or deactivate parts of the script code by using comment marks. All text on a line that follows to the right of // (two forward slashes) will be considered a comment and will not be executed when the script is run.
The data load editor toolbar contains a shortcut to commenting or uncommenting code. The function works as a toggle, if the selected code is not commented it will be commented, and vice versa.
Commenting
Do the following:
- Select one or more lines of code that are not commented out, or place the cursor at the beginning of a line.
- Click , or press Ctrl+K.
The selected code is now commented out.
Uncommenting
Do the following:
- Select one or more lines of code that are commented out, or place the cursor at the beginning of a commented line.
- Click , or press Ctrl+K.
The selected code is now not commented out.
Tip note
There are more ways to insert comments in the script code:
- Using the Rem statement.
- Enclosing a section of code with /* and */.
Example:
Rem This is a comment ;
/* This is a comment
that spans two lines */
// This is a comment as well