XLL+ Class Library (7.0)

CXlUserConverterBase<ElemType, XlNativeType>::ConvertFromExcel

Converts a single value from Excel format to a native type

virtual bool ConvertFromExcel(
   const XlNativeType& xlValue,
   ElemType& outerValue,
   const CConvertParamsBase& params
) const;

Parameters

xlValue

A reference to a value extracted from the Excel argument. This needs to be converted to type ElemType

outerValue

A reference to a the target value. If the conversion succeeds, this should be set to the converted value.

params

The conversion parameters supplied for the conversion. These include the argument name, and any extended type parameters set by the developer when the argument was specified.

Return Value

Returns true if the conversion succeeds, and outerValue has been read from xlValue and set to a valid value. Returns false if the conversion fails.

Remarks

TODO

Exceptions

TODO - CXlUserConversionException

Requirements

Header: xlpconvert.h

See Also

CXlUserConverterBase<ElemType, XlNativeType> Class | CXlUserConverterBase<ElemType, XlNativeType> Methods