Topic complex |
Table functions |
Function |
setauto() |
Short |
Sets the next AUTO number |
Syntax |
SETAUTO(DB [,n] : INTEGER) : INTEGER |
Parameter |
DB : table handle from OPENDB
n : whole number |
Return |
Next auto number that is placed with the adding of a new record. |
See also: |
|
Description |
With this function a new start value for the automatical numbering can be set.
You have to pay attention that n is bigger than the highest so far placed with number, otherwise double auto numbers can occur in the table.
Is the function called without the parameter n, those number is returned that the next new record will get.
|