Description

Generates a new number based on the configuration associated with the object's class.

Syntax

Function GenerateNumberFromClass(Vault As Vault, ObjVer As ObjVer) As String

Parameters

Name

Data Type

Description

Vault

Vault

Vault object that contains the ObjVer

ObjVer

ObjVer

ObjVer of the the generate the new number from

Return

Returns the newly generated number as a string. If the class is not configured to use DOC Numbering, then the function returns "No Number Allocated".

Example

'create Pentagon DOCS Script Library object

Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")


'get previous Workflow State ID

Dim newNumber : newNumber = scriptLib.GenerateNumberFromClass(Vault, ObjVer)