V comments document a V file. You can insert comments into the body of a V file. AVS/Express ignores comments unless they are defined with a special syntax.
A C-style comment begins with the delimiter /* and ends with the delimiter */. The delimiters can appear anywhere in the code and can span multiple lines. AVS/Express treats everything between the delimiters as part of the comment.
/* This is a comment.
AVS/Express ignores it. */
/* Below is a statement, with a comment on the same line. */
int var1; /* This is a comment. */
A C++-style comment begins with the delimiter //. AVS/Express treats everything to the right of the delimiter to the end of the line as part of the comment.
// This is a comment.
// AVS/Express ignores it.
// Below is a statement, with a comment on the same line.
int var1; // This is a comment.
When you enter a special comment in AVS/Express, it keeps track of the comment. The comment is defined as a special AVS/Express object that is kept as a child of the current object. This comment is displayed in the Network Editor and is saved and restored along with the current object. If the comment is moved or resized in the Network Editor, its size and position are maintained.
Special comments are defined using this syntax:
/*= Here is the body of the comment */
If you want to attach a size and position to the comment, you can use this syntax:
/*=100x50+30+30 Here is the text of the comment */
The statement above creates a comment that is 100x50 units in size and is offset 30 units in X and 30 units in Y. This units are in the same coordinate system as the NEx, NEy, NEwidth, and NEheight properties (usually pixels on most systems).
Special comments are created with a unique name. You can use the $list command to see the comments that you have created:
OM(grp1) -> $list
comment _comment
comment _comment#1
and you can delete them by deleting the object with the _comment name: