XLL+ Class Library (6.3)

CXlOper::RetError

Returns an error value to Excel

static CXlOper* RetError(
   XlErrorType xlerr
);

Parameters

xlerr

An error number (see also 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()