TempBool

Framework library function. This function creates a temporary logical (TRUE/FALSE) XLOPER.

Returns a Boolean LPXLOPER (xltypeBool) containing the logical value passed in.

Syntax

TempBool(int b);

b (int)

Use 0 to return a FALSE XLOPER; use any other value to return a TRUE XLOPER. In Visual Basic for Applications, -1 represents a TRUE value; for consistency you may want to use -1 to represent TRUE in your XLOPERs also.

Example

The following example uses the TempBool function to clear the status bar. Temporary memory is freed when the Excel function is called.

\SAMPLES\EXAMPLE\EXAMPLE.C

short int WINAPI TempBoolExample(void)
{
    Excel(xlcMessage, 0, 1, TempBool(0));
    return 1;
}