Try OpenEdge Now
skip to main content
ABL Reference
ABL Syntax Reference : + Addition operator
 

+ 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:
r-addn.p
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