• Reference Guide


The parameter x is a variable or a data item of one of the types: Int, Int8, Int16, Int64, Byte, Word, Dword, Qword, or Date. The both versions of the operator increment the value stored in the variable by one. The first version returns the incremented value as its result (preincrement); the latter version returns the original (not incremented) value (postincrement).
If the result after increment exceeds the maximum value of the type, the result overflows, which is not considered an error.
The operator is an abbreviation for x = x + 1.
var Int x;
var Int y;
var Int z;
x = 0;
y = ++x;
// both x and y contain value 1
z = x++;
// x is 2, z is 1

See Also