XLL+ Class Library (6.3)

CXlConstCell::ToBool

Returns a boolean value

bool ToBool(
   bool bStrict = FALSE
) const;

Parameters

bStrict

If bStrict is false (the default) then, if the CXlConstCell does not contain a boolean 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 CXlConstCell contains a boolean.

Return Value

This function returns the boolean value contained in a CXlConstCell.

Requirements

Header: xllplus.h

See Also

CXlConstCell Class | CXlConstCell Methods