Implemented in Version | 2013.r3 |
---|
A „Self-Operation“ stand for themselves and aren't provided for the use within expressions. „Variable“ in the description means variables in the working memory (SRAM). These were dimensioned as an array, element of a structure or property of a user-defined class.
This operator-combination is used to increment a variable value (addition of 1).
See also: Incr, Decr
variable++
Example:
dim a as byte dim b(3) as word dim x as integer a++ b(3)++ x++
This combination operator is used to decrement a variable value (subtraction of 1).
See also: Incr, Decr
variable++
Example:
dim a as byte dim b(3) as word dim x as integer a-- b(3)-- x--
This combination operator is used to add the variable value with the given expression value.
variable += Expression
Example:
dim a as byte a += 10 ' like a = a + 10
This combination operator is used to subtract the the given expression value from the variable value.
variable -= Expression
Example:
dim a as byte a -= 10 ' like a = a - 10
This combination operator is used to multiply the variable value with the given expression value.
variable *= Expression
Example:
dim a as byte a *= 10 ' like a = a * 10
This combination operator is used to divide the variable value with the given expression value.
variable /= Expression
Example:
dim a as byte a /= 10 ' like a = a / 10