//{{XLP_SRC(OperToBoolExample)
// NOTE - the FunctionWizard will add and remove mapping code here.
// DO NOT EDIT what you see in these blocks of generated code!
IMPLEMENT_XLLFN2(OperToBoolExample, "RPA", "OperToBoolExample",
"Arg1,Strict", "Example", "Demonstrates COper::ToBool()",
"Argument 1\000If True, then do not attempt to convert\000",
"\0\0", 1)
extern "C" __declspec( dllexport )
LPXLOPER OperToBoolExample(const COper* lpopArg1, BOOL bStrict)
{
CXlOper xloResult;
//}}XLP_SRC
// Note that ToBool() will assert (interrupting execution)
// if Strict is TRUE and Arg1 is not a boolean.
// If this happens in the debugger, you can ignore the
// assertion and continue to step through your code.
// In a real application, however, you should correct the bug
// as soon as possible by making sure that Arg1 is a Bool
// or by turning Strict type-checking off.
xloResult = lpopArg1->ToBool(bStrict);
return xloResult.Ret();
}
Uses
COper::ToBool