Previous: 4.67.2.39. High function To the Table of Contents Next: 4.67.2.41. Include procedure
4.67.2.39. High function Table of Contents 4.67.2.41. Include procedure

- 4.67.2.40. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.40. Inc procedure


4.67.2.40. Inc procedure

Targets: MS-DOS, OS/2, Win32


System Unit

Increments a variable.

Declaration:
procedure Inc(var  X [ ; N: Longint] );
Remarks:
If N is not passed to Inc, X is incremented by one. Otherwise, Inc(X) is identical to X := X + n or X +:= n.

Example:
  Inc(Int,7);  // Int  := Int + 7
  Inc(Long);  // Long := Long + 1



Previous: 4.67.2.39. High function To the Table of Contents Next: 4.67.2.41. Include procedure
4.67.2.39. High function Table of Contents 4.67.2.41. Include procedure

- 4.67.2.40. -