Sequence Numbers Component

Fnd_SqNo_Set

Fnd_SqNo_Set (group name; next number)

Legacy manual page 233

Parameters

ParameterTypeDescription
group nameTextA sequence number group name
next numberLongintNew next number in the sequence

Description

This routine sets the next number for the specified group, and deletes any numbers previously allocated for reuse. It can be used to fix problems with existing sequence numbers. The number passed will be the starting number for the new group:

Fnd_SqNo_Set ("Invoice Numbers";1001) ` Start new invoice numbers at 1001.

Unlike the Fnd_SqNo_Enable method, this routine updates the next number of the group even if it already exists.

Extracted source text
            Fnd_SqNo_Set (group name; next number)

              Parameter                 Type               Description
              group name                Text               A sequence number group name
              next number               Longint            New next number in the sequence

            This routine sets the next number for the specified group, and deletes any numbers previously allocated
            for reuse. It can be used to fix problems with existing sequence numbers.
            The number passed will be the starting number for the new group:
              Fnd_SqNo_Set ("Invoice Numbers";1001) ` Start new invoice numbers at 1001.

            Unlike the Fnd_SqNo_Enable method, this routine updates the next number of the group even if it
            already exists.