Assignment Statement

Assignment statements are used to assign values to parameters much as in any standard programming language such as C or C++. The operators used are inherited from these languages (=, +=, -=, *=, /=). An assignment statement takes the following general form:

    <parameter> = <expression>
    <parameter> += <expression>
    <parameter> -= <expression>
    <parameter> *= <expression>
    <parameter> /= <expression>

The last four assignment operators alter the parameter's current value by adding/subtracting to/from or multiplying/dividing by the value of the <expression> on the right of the operator and then reassigning the parameter with the result of the calculation. For more about expressions see section *.


©1999,2000 Mark Pearson m.pearson@ukonline.co.uk April 30, 2000