XLL+ Class Library

COper::ToBool

Returns a boolean value

[C++]
BOOL ToBool(
   BOOL bStrict = FALSE
) const;

Parameters

bStrict

If bStrict is FALSE (the default) then, if the COper does not contain a boolean value, the function will safely return an appropriate converted value.

If bStrict is TRUE then the function will assert unless the COper contains a boolean.

Return value

This function returns the boolean value contained in a COper.

Example

COper::ToBool() Example

Requirements

Header: xllplus.h

See Also

COper Class | COper Methods