TempInt/TempInt12

Applies to: Excel 2013 | Office 2013 | Visual Studio

Framework library function that creates a temporary XLOPER/ XLOPER12 that contains an integer.

LPXLOPER TempInt(short int i);
LPXLOPER12 TempInt12(int i);

Parameters

i

The intended integer value. Note that the XLOPER integer is a signed 16-bit integer (short int), whereas the XLOPER12 integer is a signed 32-bit integer ([long] int).

Return value

Returns an xltypeInt integer containing the value passed in.

Example

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

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempIntExample(void)
{
    XLOPER12 xRes;
    Excel12f(xlfGetWorkspace, (LPXLOPER12)&xRes, 1, TempInt12(44));
    Excel12f(xlFree, 0, 1, (LPXLOPER12)&xRes);
    return 1;
}

See also

Functions in the Framework Library