+= (Addition Assignment)
compound assignment += (Addition Assignment)
What changes
- Input
- target value and an expression
- Output or change
- the same variable or column
- Return type
- Returns the data type of the argument with the higher precedence. For more information, see Data type precedence.
Syntax at a glance
expression += expression
Work example
A calculation needs += (Addition Assignment) with explicit input types and bounds.
Try a positive value, a negative value, and a boundary value. Check overflow, precision, and type conversion.
Check your work += (Addition Assignment). The result of += (Addition Assignment) has the expected sign, precision, and range.
Open Microsoft Learn for full syntax, permissions, and details for your version.