Difference between revisions of "Decrement"
From Lianjapedia
(→Products) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Decrement memory variable by one | Decrement memory variable by one | ||
− | |||
==Syntax== | ==Syntax== | ||
-- <memvar> | -- <memvar> | ||
− | |||
==See Also== | ==See Also== | ||
[[Increment|++]], [[AVERAGE]], [[COUNT]], [[FOR]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC]], [[STORE]], [[SUM]] | [[Increment|++]], [[AVERAGE]], [[COUNT]], [[FOR]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC]], [[STORE]], [[SUM]] | ||
− | |||
==Description== | ==Description== | ||
The -- command is used to automatically decrement a previously declared numeric memory variable by one. The -- command must be placed at the beginning of the command line. | The -- command is used to automatically decrement a previously declared numeric memory variable by one. The -- command must be placed at the beginning of the command line. | ||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands|--]] | [[Category:Commands|--]] | ||
− | [[Category: | + | [[Category:Declaring Variables and Arrays]] |
− | [[Category: | + | [[Category:Lianja VFP Extensions]] |
+ | [[Category:VFP Command Extensions]] |
Latest revision as of 06:32, 10 December 2012
Contents
Purpose
Decrement memory variable by one
Syntax
-- <memvar>
See Also
++, AVERAGE, COUNT, FOR, PARAMETERS, PRIVATE, PUBLIC, STORE, SUM
Description
The -- command is used to automatically decrement a previously declared numeric memory variable by one. The -- command must be placed at the beginning of the command line.
Example
i=100 do while i > 0 --i enddo