Copies the contents of an OPER into a 'C' array of doubles or pointers to doubles
BOOL ToDoubleArray( double* pd, USHORT cRows, BOOL bStrict = FALSE ) const; BOOL ToDoubleArray( double* pd, USHORT cRows, USHORT cCols, BOOL bByRows = FALSE, BOOL bStrict = FALSE ) const; BOOL ToDoubleArray( double** apd, USHORT cRows, USHORT cCols, BOOL bByRows = FALSE, BOOL bStrict = FALSE ) const; |
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 will be arranged in the order specified by the bByRows parameter.
The number of rows contained in the supplied array of doubles.
If bStrict is FALSE (the default) then, if any of the cells in the CXlOper do not contain a double, the function will safely return an appropriate converted value.
If bStrict is TRUE then the function will fail and return FALSE unless every cell in CXlOper contains a double.
The number of columns contained in the supplied array of doubles.
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.
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
This function returns TRUE if any of the cells in a CXlOper have been successfully read into the array(s) as numbers, FALSE otherwise.
CXlOper::ToDoubleArray() Examples
Header: xllplus.h