Script File: Comments


(Contents)(Previous)(Next)

The script file may contain comments. The PC Access script processor ignores all characters to the right of a double slash sequence (//), up to the end of the line. Below is an example:

// This is a comment starting in the left most column.

// This line is ignored.

label START;

send "HELLO"; // On this line, the 'send "HELLO"' is processed

Block comments start with the slash-asterisk (/*) sequence and end with the asterisk-slash sequence (*/). The PC Access script processor ignores all text between these sequences. The block comment may start on one physical line and end on another.

Example:

/* Comment starts here.

This line is ignored.

So is this one.

Comment ends after the start-slash */ send "NOT IN COMMENT";

Use comments to make a script file more readable. This is especially useful when one person writes the script file and someone else has to change it.


(Contents)(Previous)(Next)