Assigns a 1-dimensional array of numbers to the CXlOper
[C++]
template< class T >
BOOL FromNumericVector(
const std::vector<T>& vec,
BOOL bRow = FALSE,
long lLBound = 0
);
1-dimensional array of numeric data.
The following types for T are directly supported:
If TRUE, then the vector created will be a row; otherwise the vector will be a column.
The lower bound of "interesting" inputs. The first lLBound items in the input vector will be ignored.
Returns TRUE if the function succeeded, FALSE if it failed.
This function sets the type of the CXlOper to be an array with a single column
or row, allocates space for the vector of numbers provided and
sets the values into the CXlOper. This function is called by the CXlOper(std::vector<...> vec)
constructors. Note that this method ensures that all integer numeric types are returned to Excel as floating point numbers.
To return integer types as boolean values, use
CXlOper::FromVector().
Header: xllplus.h
CXlOper Class
| CXlOper Methods
| CXlOper::operator =
| CXlOper::CXlOper
| CXlOper::FromVector