Topic complex |
Table functions |
Function |
autofield() |
Short |
Returns the field number of that field which saves the auto number |
Syntax |
AUTOFIELD(db : INTEGER) : INTEGER |
Parameter |
db : table handle returned by OPENDB.
|
Return |
number of the field, that is numbered automatically.
0, if no such field exists |
See also: |
|
Description |
At a central data entry and data manipulation it is better to refer to auto numbers than to work with physical numbers of records.
Important: Are writing accesses to a table allowed all programms that work with this table should use a common (binary) semaphore.
This secures that only on process accesses on the table in one moment.
Is the table automatically numbered, unique references can be made by the AutoField function, if the lock is unmade between the accesses.
|