MakeAutoNumbers (open)

Get a list of the next autonumber IDs for a table

Syntax

// Core function, no LOADLIB necessary

INTEGER ARRAY FUNCTION MakeAutoNumbers(TABLE gettable, STRING columnname, INTEGER amount)

Parameters

TABLE gettable

Table for which an autonumber value should be generated

STRING columnname

Name of the autonumber column for a value is requested

INTEGER amount

Number of autonumber values to get

Return value

INTEGER ARRAY

The next available autonumber values

Description

Reserves a list of autonumber IDs in a table, and returns that list. In WebHare tables, all IDs are specfic for that column and table - autonumber ids are not guaranteed to be unique across all tables.