Topic complex |
Table functions |
Function |
incrfield() |
Short |
Increments the value of a data field |
Syntax |
INCRFIELD(db : INTEGER; field : INTEGER|STRING [; offset : REAL]) : REAL |
Parameter |
db : table handle from OpenDB
field : field number or field identifier
offset: (default 1) value, which is added to the actual field value
|
Return |
field value after executing the function |
See also: |
|
Description |
This function works with the field values of the record buffer. The offset also may be negative.
Because of a higher performance the function is to prefer to the construction
SETRFIELD(db,field,GETRFIELD(db,field)+offset).
|