NumberSequence.Next(Text [, Boolean]) Method
Version: Available or changed with runtime version 4.0.
Retrieves the next value from the number sequence.
Syntax
Next := NumberSequence.Next(Name: Text [, CompanySpecific: Boolean])
Parameters
Name
Type: Text
Specifies the name of the number sequence.
[Optional] CompanySpecific
Type: Boolean
Specifies if the number sequence is company-specific. Default is true.
Return Value
Next
Type: BigInteger
Returns the next value from number sequence.
Example
The following example gets the next value in the number sequence MyNumberSequence
. The number series is not company specific.
number := NumberSequence.Next('MyNumberSequence', false);
Related information
NumberSequence Data Type
Get Started with AL
Developing Extensions