MakeAutoNumber (open)
Get the next autonumber ID for a table
Syntax
// Core function, no LOADLIB necessary
INTEGER FUNCTION MakeAutoNumber(TABLE gettable, STRING columnname)
Parameters
TABLE gettable
Table for which an autonumber value should be generated
STRING columnname
Name of the autonumber column for a value is requested
Return value
INTEGER
The next available autonumber value
Description
Reserves an autonumber ID in a table, and returns that ID. In WebHare tables, all IDs are specfic for that column and table - autonumber ids are not guaranteed to be unique across all tables.