Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>+ add, unary positive, concatenate (math, character)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+              Add, unary positive, concatenate           (Math, Character)


Syntax:        <expN1> + <expN1>
               <expD>  + <expN3>
               <expC1> + <expC2>

Type:          Numeric, date, character, and memo

Operands:      <expN1> is a numeric value to increment by
               <expN2>.

               <expD> is a date value to increment by <expN3>
               days.

               <expC2> is a character string to concatenate to the
               end of <expC2>.

Description:   The (+) operator performs a number of different
               operations depending on the data types of the operands:

               Unary positive sign (numeric): A numeric expression
               prefaced with the plus (+) operator performs no operation
               on the operand except to enforce a higher level of
               precedence than other numeric operations other than unary
               minus.

               Binary addition sign (numeric, date): If both
               operands are numeric, <expN2> is added to <expN1> and the
               result is returned as a numeric value.  If either operand
               is date and the other operand numeric, the <expN> is
               added as days to the <expD> and a date value is returned.

               Concatenation (character, memo): If both operands are
               character, <expC2> (the right operand) is concatenated to
               <expC1> (the left operand) returning a character string.


----------------------------------- Examples -------------------------------

   * Binary addition (numeric).
   ? 1 + 1                              && Result: 2
   ? 1 + 0                              && Result: 1
   ? 0 + 1                              && Result: 1

   * Binary addition (date).
   ? CTOD("12/12/88") + 12              && Result: 12/24/88
   ? 12 + CTOD("12/12/88")              && Result: 12/24/88

   * Concatenation (character).
   ? "Hi " + "there"                    && Result: Hi there


See Also: % * ** - / Expr_error()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson