Add '+', '+='
The Add operator adds two values together. Add can be used in both variable and constant expressions. Example:
X := Y + 5
Add has an assignment form, +=, that uses the variable to its left as both the first operand and the result destination.
For example:
X += 10 'Short form of X := X + 10
Here, the value of X is added to 10 and the result is stored back in X. The assignment form of Add may also be used within expressions for intermediate results; see Intermediate Assignments.
Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.