CopyRefObjIngreds
You can use this function for Optiva Copy Methods.
Purpose
This function copies Ingredients and values from the reference object to a new object.
Syntax
Dim lIngredsAs Long = CopyRefObjIngreds()
Return Value
If the code is successful, a value greater than zero (0) is displayed.
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()
long ingred = CopyRefObjIngreds();