Iduplicate()

Creates a clone of the business object.

Syntax

IBusinessObject Iduplicate(); 

Parameters

None.

Return Values

An an IBusinessObject object that contains the duplicate business object.

Exceptions

ICxAccessError
Thrown when the object cannot be found.

Notes

The Iduplicate() method makes a clone of the business object and returns it. You must explicitly assign the return value of this method call to a declared variable of IBusinessObject type.

Example

The following example duplicates sourceCustomer to create destCustomer.

IBusinessObject destCustomer = sourceCustomer.Iduplicate();

Copyright IBM Corp. 2004, 2005