Increments a variable.
procedure Inc(var X [ ; N: Longint ] );
Windows, Real, Protected
X is an ordinal-type variable or a variable of type PChar if the extended syntax is enabled and N is an integer-type expression. X is incremented by 1, or by N if N is specified; that is, Inc(X) corresponds to X := X + 1, and Inc(X, N) corresponds to [X := X + N.]
Inc generates optimized code and is especially useful in tight loops.