ProcUnit::CopyInnerUnit

Copies inner processing unit

int CopyInnerUnit(
   int  srcInnerUnitNo,
   int  destInnerUnitNo
);

Parameters
srcInnerUnitNo
The processing unit number of the inner processing unit which is copied from.
destInnerUnitNo
The processing unit number of the inner processing unit which is copied to.

Return Value
Returns 0 when a inner processing unit is successfully copied.
Otherwise returns a non-zero value.

Description
Copies the unit which is registered with the copy source inner processing unit number specified by the argument to the specified copy destination inner processing unit number.
If a inner processing unit is already registered with the copy destination, the specified unit is overwrite-copied.

Example
   int Sample::DeleteProc(ProcUnit *ptrProcUnit)
    {

        // Inner processing unit registered with unit No. 0 is copied to unit No. 10

        ptrProcUnit->CopyInnerUnit(0, 10);
    }