Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - += addition compound assignment operator (binary) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 +=                  Addition compound assignment operator (binary)
------------------------------------------------------------------------------
 Syntax
   xVar += xValue

 Arguments
   xVar is a numeric or string variable that receives the assignment. The
   variable must be initialized to a value before performing the operation.

   xValue is the right operand to the + operator.

 Description
   The += operator performs a + operation with the current value
   of xVar and xValue, then assigns the result to xVar.

   The action by += is equivalent to xVar := ( xVar + xValue ).

   When the += operator is applied to two character operands, the result is
   a new character string that is the result of the concatenation of the two
   strings.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_937
   vardef
      uint n
      uint nNumber
      char cString
   enddef
   nNumber := 5
   cString := "String "
   for n := 1 to 3
      nNumber += n
      cString += istr( n )
      ? nNumber, cString
   next
   endproc

   proc main
   Test_937()
   endproc

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