RenameFormula

You can use this function for Optiva Workflows.

Purpose

Assigns a new name and version to an object.

Syntax


Dim variable As Object = RenameFormula(NewCode,NewVersion)

Arguments

Part Description
NewCode New name for the formula.
NewVersion New version for the formula.

Description

RenameFormula assigns a new name and version to a formula. It replaces the name of the current formula. It is not a copy of the formula. This function refreshes on-screen data.

Examples

In this example, a new name and version number are assigned to the current workflow formula.


Dim oNewname As Object = RenameFormula ("PIZZA_SAUCE","004")

In the next example, the new formula is assigned the same name as the current formula. The version number is incremented by one.


Dim oIncrementformula As Object = RenameFormula("","+")