increment
DATA
,
VALUE

The increment statement increments a field or variable.


Parameters

This statement has two parameters:

data – Name of field or variable.

value – Value (default = 1 if not specified).


Description

This statement increments a field or variable. This example scans the elements in myarray, one item at a time.

local n,myarray,item
n=1
loop
    item=array(myarray,n,",")
    stoploopif item=""
    // do something with item here
    increment n // same as n=n+1
endloop

Note: Although this example illustrates the increment statement, a better way to perform this task would be to use the looparray statement.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.