PreviousNextIndex

NEXT-VALUE function

Returns the next INT64 value of a static sequence, incremented by the positive or negative value defined in the Data Dictionary.

Syntax

NEXT-VALUE ( sequence [ , logical-dbname ] ) 

sequence
logical-dbname
Example

The following trigger procedure uses the NextItemNum sequence to set the iItemNum field for a new Item record:

r-critem.p
TRIGGER PROCEDURE FOR Create OF Item. 
/* Automatically assign a unique item number using NextItemNum seq */ 
ASSIGN Item.ItemNum = NEXT-VALUE(NextItemNum). 

Notes
See also

CURRENT-VALUE function, CURRENT-VALUE statement, DYNAMIC-CURRENT-VALUE function, DYNAMIC-CURRENT-VALUE statement, DYNAMIC-NEXT-VALUE function, NEXT-VALUE function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex