decrement

Examples


The decrement statement allows you to decrement, or decrease, a numeric value by a specified amount.

Syntax

decrement number {by numeric_expression}

Parameters

number – An integer, long, currency, variable currency, time or date field or variable that you want to decrement.

numeric_expression – A field or variable of the same control type as the number parameter, by which number is decreased. If no numeric_expression is indicated, the default decrement value is 1. The following default values are supported for each numeric control type:

[spacer]

Control type

Default decrement value

integer

1

long

1

currency

1 currency unit

variable currency

1 currency unit

time

1 minute

date

1 day



Documentation Feedback