XLL+ Class Library

CXlOper::ChangeType

Convert a CXlOper from one data type to another

[C++]
int ChangeType(
   WORD xltype,
   LPCXLOPER lpxlopSource = 0
);

Parameters

xltype

The type desired. This should be one of the xltype values listed in CXlOper data types.

lpxlopSource

The source of the conversion. If lpxlopSource is 0, then the destination CXlOper (*this) will be converted in place.

Return value

The result of the SDK call-back. xlretSuccess (0) indicates success. Other values indicate failure. A full list of return values can be found in the section "Return codes" in the MS SDK header file XLCALL32.H.

Remarks

This function converts a CXlOper from its current data type to another.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXlOper::Coerce()