Difference between revisions of "Dec"
From Lazarus wiki
Jump to navigationJump to search (Created page with "= Dec = Dec (decrement) procedure in Pascal programming let you easily subtract 1 (or some other value) from, a variable. For example, using (de...") |
|||
Line 22: | Line 22: | ||
* Link to RTL documentation: [[doc:rtl/system/dec.html |dec]] | * Link to RTL documentation: [[doc:rtl/system/dec.html |dec]] | ||
− | * [[Inc]] | + | * [[Inc]] - Increase value of integer variable. |
+ | * Link to RTL documentation: [[doc:/rtl/system/pred.html |pred]] - Return previous element for an ordinal type. | ||
+ | * [[For]] control_variable := start_point [[Downto]] end_point [[Do]] statement. |
Revision as of 19:13, 24 February 2015
Dec
Dec (decrement) procedure in Pascal programming let you easily subtract 1 (or some other value) from, a variable.
For example, using (decrement) procedure, you can reduce 1 to a variable named a like this:
dec( a );
If you want to reduce by two (or some other value):
dec( a, 2 );
Dec procedure included System Unit.