Share via


TempBool/TempBool12

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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