Using the CURRENT-VALUE function
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Use the CURRENT–VALUE function in any integer
expression to retrieve the current value of a sequence without incrementing
it. The current value of a sequence can be any of the following:
- The Initial value specified in the Dictionary
- The last value set with either the
CURRENT–VALUEstatement or theNEXT–VALUEfunction
The following example gets the most recent Customer number
in the default database (maintained by the NextCustNum sequence),
and displays each order record for that Customer:
|