setautonumber
setautonumber
NUMBER

The setautonumber statement changes the automatically generated number for the next record that will be added to database. This allows you to generate numbers out of sequence, or to start the sequence at a specific value.

Parameters

This statement has one parameter:

number – is the number that should be assigned to the next record that is created. This must be an integer.

Description

Panorama can automatically number new records as they are added to the database. This statement allows a procedure to change what the next number will be. This example skips autonumbering ahead by 100:

    setautonumber getautonumber()+100

See Also

- getautonumber -- returns the automatically generated number for the next record that will be added to the database.
- getautonumber( -- returns the automatically generated number for the next record that will be added to the database.
- setdatabaseoptions -- modifies one or more properties of a database.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0.