FindAndRegisterNextNumber()

A FindAndRegisterNextNumber() function returns a next number registered for the given type of cases for the given key.

Syntax

FindAndRegisterNextNumber(NumberType,SearchKey);

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

This function returns Decimal. The FindAndRegisterNextNumber() function returns a next number registered for the current case.

Examples

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