V statements add, modify, and delete objects. This section first provides an overview of the general coding rules that apply to V statements and then describes each available statement.
The following general coding rules apply to all V statements.
A V statement consists of one or more clauses, such as object type, name, and value expression, terminated by a semicolon.
int var1<NEportLevels=2>[] => {a,b};
The clauses in this statement are
<NEportLevels=2> Objects' property specification
[] Array dimension declaration
=> {a,b} Connection expression
Clauses must appear in the order indicated by the syntax.
For example, if a statement specifies both properties and an array declaration, the properties clause appears first:
int var1 <NEportLevels=2> [] => {a,b};
A statement can start anywhere on a line. It can start on the same line that another statement ends.
Clauses must be separated from one another by spaces, tabs, or newlines. You can insert any number of these between clauses.
Certain clauses use special characters, which can also act as separators. The reference-mode clause uses the special characters ^, &, and *; the array-declarator clause uses [ and ]; the properties clause uses < and >; and the subobjects clause uses { and }. You do not have to code a space, tab, or newline on either side of them.
Separators are not required before the semicolon that terminates a statement.
group &var1[3]; // Valid.
group&var1[3]; // Valid.
group & var1 [3] ; // Valid.
In the last example, the object's type and name must be separated from one another with a space, tab, newline, or special character as follows:
A statement can appear on one line or be split across multiple lines. No special formatting is required for continuation lines.
For example, the following statements are equivalent:
You can continue a character string literal to another line, but the newline character is considered part of the string.
AVS/Express is case sensitive.
For example, assuming you want the object type to be int, the following statement is invalid: