Share via


TempInt/TempInt12

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 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

Concepts

Functions in the Framework Library