Description: Obtains the next value from a named database sequence.
Calling convention: CIP_GetNextSequenceValue("SequenceName": String, [KeyOffset: Integer]): Integer
Parameters:
SequenceName: database sequence name; NULL returns NULL without advancing the sequence.
KeyOffset: optional increment; omission or NULL defaults to 1.
Returns: Next sequence value as Integer, or NULL when SequenceName is missing or NULL.
Availability: Default; requires sequence support on the active database and advances sequence state.
Example:
NextID := CIP_GetNextSequenceValue("SEQ_ORDER", 1);