Icon Dec

Unit: Internal

Available In: Client and Server Applications

procedure Dec(var Value: Integer)

procedure Dec(var Value: Integer; By: Integer)

The Dec procedure decrements the Integer input parameter by 1, or by the By input parameter, if specified.

Examples

X := 10;
Dec(X);
Y := IntToStr(X)  // Y is '9'
Image