TempInt

Framework library function. This function creates a temporary integer XLOPER.

Returns an integer LPXLOPER (xltypeInt) containing the value passed in.

Syntax

TempInt(short int I);

i (short int)

The integer to place in the integer OPER.

Example

This example uses the TempInt function to pass an argument to xlfGetWorkspace.

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempIntExample(void)
{
    XLOPER xRes;

    Excel(xlfGetWorkspace, (LPXLOPER)&xRes, 1, TempInt(44));
    Excel(xlFree, 0, 1, (LPXLOPER)&xRes);
    return 1;
}