Zum Hauptinhalt springen

Dec

Decrements a variable by 1 or N.

Structure

Dec(var X[ ; N: Longint]);

Parameters

Description

The Dec procedure subtracts one or N from a variable.

X is a variable of an ordinal type (including Int64), or a pointer type if the extended syntax is enabled.

N is an integer-type expression.

X decrements by 1, or by N if N is specified; that is, Dec(X) corresponds to the statement X := X - 1, and Dec(X, N) corresponds to the statement X := X - N. However, Dec generates optimized code and is especially useful in tight loops. |