XLL+ Class Library (6.3)

CXlOper::FromDoubleArray

Assigns the CXlOper to be an array of double's, and copies values into the array

const CXlOper& FromDoubleArray(
   const double* pd,
   size_t cRows
);
const CXlOper& FromDoubleArray(
   const double* pd,
   size_t cRows,
   size_t cCols,
   BOOL bByRows = FALSE
);
const CXlOper& FromDoubleArray(
   const double* const* apd,
   size_t cRows,
   size_t cCols,
   BOOL bByRows = FALSE
);

Parameters

pd

An array of double's, containing either cRows items, or (cRows x cCols) items, depending on the function variant used. For the latter type, the values should be arranged in the order specified by the bByRows parameter.

cRows

The number of rows contained in the supplied array of doubles.

cCols

The number of columns contained in the supplied array of doubles.

bByRows

Storage order of arrays of double's. If TRUE, then values in the same row are stored contiguously, otherwise values in the same column are assumed to be stored contiguously.

apd

An array of pointers to double, containing either cRows arrays each of size cCols, or cCols arrays each of size cRows, depending on the order specified by the bByRows parameter.

Remarks

This function sets the type of the CXlOper to be an array, allocates space for the array of doubles provided and sets the values into the CXlOper.

The method will throw an exception of type CXlEmptyArrayException if the supplied array is empty, or of type CXlArrayTooLargeException if the array is too large.

Example

MyDaysInMonth Example

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods