XLL+ Class Library (6.3)

CXlOper::ToInt

Returns an integer value

short int ToInt(
   bool bStrict = FALSE
) const;

Parameters

bStrict

If bStrict is false (the default) then, if the CXlOper does not contain an integer value, the function will safely return an appropriate converted value.

If bStrict is true then the function will throw an exception of type CXlConversionException unless the CXlOper contains an integer.

Return Value

This function returns the integer value contained in a CXlOper.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods