CopyRefObjIngreds

You can use this function for Optiva Copy Methods.

Purpose

Copies ingredients and values to the new object from the reference object.

Syntax


Dim variable As Long = CopyRefObjIngreds()

Arguments

None

Example

This script is in a copy method for a specification that is created from the References tab of a formula (Object Type = SPECIFICATION, Reference Type = FORMULA, Events = Create From As New). It adds all of the formula ingredients, with or without a value, to the specification.


Dim lIngreds As Long = CopyRefObjIngreds()