TempBool/TempBool12
Applies to: Excel 2013 | Office 2013 | Visual Studio
Framework library function that creates a temporary XLOPER/ XLOPER12 containing Boolean TRUE or FALSE.
LPXLOPER TempBool(int b);
LPXLOPER12 TempBool12(int b);
Parameters
b (int)
Use 0 to return FALSE; use any other value to return TRUE.
Property value/Return value
Returns an xltypeBool Boolean containing the logical value passed in.
Example
The following example uses the TempBool12 function to clear the status bar. Temporary memory is freed when the Excel/Excel12f function is called.
\SAMPLES\EXAMPLE\EXAMPLE.C
short int WINAPI TempBoolExample(void)
{
Excel12f(xlcMessage, 0, 1, TempBool12(0));
return 1;
}