NumberSequence.Current(Text [, Boolean]) Method

Version: Available or changed with runtime version 4.0.

Gets the current value from the number sequence, without doing any increment. The value is retrieved out of transaction. The value will not be returned on transaction rollback.


Current :=   NumberSequence.Current(Name: Text [, CompanySpecific: Boolean])


 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

 Type: BigInteger
Returns the current value from number sequence.


The following example gets the current value for the number sequence MyNumberSequence, which is not company specific.

number := NumberSequence.Current('MyNumberSequence', false);

See Also

NumberSequence Data Type
Get Started with AL
Developing Extensions