Sequence Object

The Sequence object manages sequence numbers for a specific class of objects. Sequences are useful for generating unique numbers used in calculating document names. The scope of a sequence is determined by its parent object.

ClosedSequence Object Properties

The Sequence object provides the following properties.

ClosedNext Property

Increment the current sequence value or start a new sequence at an optional specified value. Read-only. The value of StartAt must be higher than the current sequence value.

Syntax

Next(StartAt)As Long

ClosedValue Property

The current sequence value. Read-only.

Syntax

Value As Long

ClosedSequence Object Methods

The Sequence object provides the methods described below.

ClosedSetTo Method

Set the current sequence to a new number.

Syntax

SetTo(Number)
Parameters
Name Description

Number

Long integer with which to set the sequence.

Return Value

The new (Long) number.

2022 R2