Returns an error value to Excel
static CXlOper* RetError( XlErrorType xlerr ); |
An error number (see also Error Values).
This function returns a pointer to some static memory containing an error code.
This static function can be used to return a CXlOper result containing an error code from an add-in function, instead of CXlOper::Ret().
For example:
if (input < 0) return CXlOper::RetError(xlerrNum);
Header: xllplus.h
CXlOper Class | CXlOper Methods | CXlOper::Ret() | CXlOper::RetString()