Share via


Sequence.nextval Method

Returns the next sequence number from the sequence and then increments the counter value.

Syntax

public int64 nextval(
    int64 Increment, 
   [str Subkey1, 
    int Subkey2])

Run On

Server

Parameters

  • Increment
    Type: int64
    The number of values to retrieve; that is, the next number to retrieve is 'Increment' larger than the value returned by this method.
  • Subkey1
    Type: str
    The current Company is used as a subkey if this is omitted, but you may want to invent your own subkey.
  • Subkey2
    Type: int

Return Value

Type: int64
The next sequence number available.

See Also

Sequence Class

Sequence.currval Method