Dec

From Lazarus wiki
Revision as of 22:46, 23 February 2015 by Djzepi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.


See also

  • Link to RTL documentation: dec
  • Inc