Progress
Language Reference


+ Unary Positive Operator

Interfaces
OS
SpeedScript
All
All
Yes

Preserves the positive or negative value of a numeric expression. Do not confuse this operator with the addition operator that you use to add expressions together.

SYNTAX

+ expression 

expression

An expression whose value is numeric.

EXAMPLE

In this example, the sign of credit-limit is preserved as is the sign of the sum of
credit-limit + 100. The unary positive is not necessary; it is used simply to document the procedure.

r-unpos.p
DEFINE VARIABLE old-max LIKE credit-limit LABEL "Old Limit".

FOR EACH customer:
  old-max =+ credit-limit.
  credit-limit =+(credit-limit + 100).
  DISPLAY name old-max credit-limit.
END. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095