Bearbeiten

Teilen über


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);

NumberSequence Data Type
Get Started with AL
Developing Extensions