RemoveRefCodes
You can use this function for Optiva Workflows and Copy Methods.
Purpose
Removes the Reference Code and Reference Status Code for the objects that are listed on the
               References  tab of the object
            of the workflow. 
Syntax
Dim variable As Long = RemoveRefCodes(Symbol, Object)
 
	     Arguments
| Part | Description | 
|---|---|
 
					                   Symbol 
				                  | 
                     Type of object. Use empty quotation marks to indicate the symbol of the object for the workflow, or the new object for the copy method. | 
 
					                   Object 
				                  | 
                     Object to be removed from the set codes. Use empty quotation marks to indicate the object for the workflow, or the new object for the copy method. | 
Description
            RemoveRefCodes removes the 
		  Reference Code and 
		  Reference Status Code of
		  each object listed on the 
		  References tab of the
		  workflow’s object. This does not remove the actual object from the 
		  References tab; the function
		  only removes the 
		  Reference Code and 
		  Reference Status Code. 
		
Examples
This example removes the reference code and reference status code of
		  each reference of the 
		  PIZZASAUCE\003 formula. 
		
Dim lRemove As Long
RemoveRefCodes("FORMULA","PIZZASAUCE\003")
 
		       The next example removes the reference code and reference status code of each reference of the workflow’s or copied object.
Dim lRemove As Long = RemoveRefCodes("","")