XLL+ Class Library (6.3)

CXlOper::FromLongArray

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

const CXlOper& FromLongArray(
   const long* pl,
   size_t cRows
);
const CXlOper& FromLongArray(
   const long* pl,
   size_t cRows,
   size_t cCols,
   BOOL bByRows = FALSE
);
const CXlOper& FromLongArray(
   const long* const* apl,
   size_t cRows,
   size_t cCols,
   BOOL bByRows = FALSE
);

Parameters

pl

An array of long'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 longs.

cCols

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

bByRows

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

apl

An array of pointers to long, 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 longs provided and sets the values into the CXlOper. Each integer value is converted to a double.

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.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods