OPERATORS

Multiplication assignment (*=)

Apply multiplication to the current value of the target and the right operand.

Syntax

Signature
target *= value

Description

Apply multiplication to the current value of the target and the right operand. Store the result back in the target. The operand rules are those of *.

Example

Multiplication_assignment.prg
PROCEDURE Main()

   LOCAL nUnits := 1
   LOCAL nFactor

   // Pieces per tray, trays per carton, cartons per pallet.
   FOR EACH nFactor IN { 6, 4, 15 }
      nUnits *= nFactor
      QOut( "Pieces in this packing unit", nUnits )
   NEXT

   RETURN

Output