Share via


TempBool/TempBool12

Applies to: Excel 2010 | Office 2010 | VBA | Visual Studio

Framework library function that creates a temporary XLOPER/XLOPER12 containing BooleanTRUE 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 xltypeBoolBoolean 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;
}

See Also

Concepts

Functions in the Framework Library