Difference between revisions of "Inc"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure Inc(var x); </source> ==Availability== SCAR Divi 3.00 > Current *Before SCAR Divi 3.12 the function was defined as: ...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
==Description== | ==Description== | ||
− | Increases the value of | + | Increases the value of a given [[integer]] variable '''x''' by 1. An extended function with additional functionality is available as [[IncEx]]. |
− | ===Accepted Types=== | + | ===Accepted Types (x)=== |
*[[ShortInt]] | *[[ShortInt]] | ||
*[[Byte]] | *[[Byte]] |
Latest revision as of 00:12, 3 July 2011
Definition
procedure Inc(var x);
Availability
SCAR Divi 3.00 > Current
- Before SCAR Divi 3.12 the function was defined as:
procedure Inc(var i: Integer);
- Before SCAR Divi 3.26 the function did not accept the data type Int64.
Description
Increases the value of a given integer variable x by 1. An extended function with additional functionality is available as IncEx.
Accepted Types (x)
Example
var i: Integer; begin i := 1; Inc(i); WriteLn(i); end.
Output:
2