FindAndRegisterNextNumber()
A FindAndRegisterNextNumber() function returns a next number registered for the given type of cases for the given key.
FindAndRegisterNextNumber(NumberType,SearchKey);Function arguments
Dział zatytułowany „Function arguments”- NumberType – (String) an identification key of autonumbering (a type of cases);
- SearchKey – (String) a key for which numeration will be created.
Return value
Dział zatytułowany „Return value”This function returns Decimal. The FindAndRegisterNextNumber() function returns a next number registered for the current case.
Examples
Dział zatytułowany „Examples”Example 1
Dział zatytułowany „Example 1”The function will return a next number registered for the current case and for „DocumentTypeA” type of cases for the given [Employee] (the search key).
[Number] = FindAndRegisterNextNumber("DocumentTypeA",[Employee]);See also: RegisterNextNumber()