Icon Inc

Unit: Internal

Available In: Client and Server Applications

procedure Inc(var Value: Integer)

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

The Inc procedure increments the Integer input parameter by 1, or by the By input parameter, if specified.

Examples

X := 1;
Inc(X);
Y := IntToStr(X)  // Y is '2'
Image