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.
Syntax
Current := NumberSequence.Current(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
Current
Type: BigInteger
Returns the current value from number sequence.
Example
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för