XLL+ Class Library (6.3)

CXlArray::Copy

Copies the contents of an CXlArray

void Copy(
   const CXlArray& xla
);
void Copy(
   LPCXLARRAY4 pxla4
);
void Copy(
   LPCXLARRAY12 pxla12
);

Parameters

xla

An initialised CXlArray, whose contents will be copied to this CXlArray.

pxla4

An initialised XLARRAY4 structure, whose contents will be copied to this CXlArray.

pxla12

An initialised XLARRAY12 structure, whose contents will be copied to this CXlArray.

Remarks

This method assigns a new size and new values to the CXlArray. If the target CXlArray already contains data, then it will be appropriately cleared before the assignment.

Exceptions

If memory allocation fails, then an exception of type CXlMemoryAllocationFailedException will be thrown. Since this exception is derived from CXlRuntimeException, it will be caught by the add-in wrapper function when this method is called from within an add-in function.

Requirements

Header: xllplus.h

See Also

CXlArray Class | CXlArray Methods