Previous Next

+ Addition operator
Adds two numeric expressions.
Syntax 
 
expression + expression
expression
An expression whose value is numeric.
Example 
In the following example, the addition operator (+) adds 100 to the value of the CreditLimit field:
 
FOR EACH Customer:
  Customer.CreditLimit = Customer.CreditLimit + 100.
END.
Note 
Adding two decimal expressions produces a DECIMAL value. Adding two INTEGER expressions produces an INTEGER value. Adding an integer expression (either INTEGER or INT64) and a decimal expression produces a DECIMAL value. Adding an INTEGER and an INT64 expression produces an INT64 value.
See also 
– Subtraction operator

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.