RenameObject
You can use this function for Optiva Workflows.
Purpose
Assigns a new name and version to an object. Currently, this function applies to formulas or specifications.
Syntax
Dim variable As Long = RenameObject(Symbol, OldCode, NewCode)
Arguments
Part | Description |
---|---|
Symbol
|
Type of object. Use empty quotation marks to indicate the symbol of the object for the workflow. |
OldCode
|
Current object code. |
NewCode
|
New code. |
Description
RenameObject
assigns a new name and version to a
formula or specification. It replaces the name of the object, but does not make
a copy of the object. This function refreshes on-screen data.
Examples
In this example, a new name and version number are assigned to the current workflow specification.
Dim lNewname As Long = RenameObject ("","","LOWFAT\0001")
In this example, a specification is identified.
Dim lNewname As Long
RenameObject ("SPECIFICATION", "FAT\0001","LOWFAT\0001")