XLL+ Class Library

CXlOper::RetError

Returns an error value to Excel

[C++]
static LPXLOPER RetError(
   WORD wError
);

Parameters

wError

An error number (see Error Values).

Return value

This function returns a pointer to some static memory containing an error code.

Remarks

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);

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXlOper::Ret() | CXlOper::RetString()