CopyRefObjContextAttrib

You can use this function for Optiva Copy Methods.

Purpose

This function copies the reference objects context to the new object and is used in copy methods for creating an object on another object of the References tab.

Syntax


int CopyRefObjContextAttrib()

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 copies all of the context attributes from the formula to the specification.


Dim lContext As Long = CopyRefObjContextAttrib()
int lContext = CopyRefObjContextAttrib();