INCR

Top  Previous  Next

Action

Increments a variable by one.

 

 

Syntax

INCR var

 

 

Remarks

Var

Any numeric variable.

 

There are often situations where you want a number to be increased by 1.

The INCR statement is faster then var = var + 1.

 

 

See also

DECR

 

 

Example

Dim A As Integer

Do                                       'start loop

Incr A                                   'increment a by 1

Print A                                 'print a

Loop Until A > 10                         'repeat until a is greater than 10