Try OpenEdge Now
Programming Interfaces
Database Administration Entity Interface Reference
:
ISequence interface
:
ISequence examples
:
Creating a sequence
Creating a sequence
The following code shows assignment of properties for a new sequence:
define variable sequence as ISequence no-undo.
assign
sequence = service:NewSequence("OrderSeq")
sequence:IsMultitenant = true
sequence:MaximumValue = 2000000
sequence:IncrementValue = 10.
service:CreateSequence(sequence).