TempNum

Framework library function. This function creates a temporary numeric (IEEE floating-point) XLOPER.

Returns a numeric LPXLOPER (xltypeNum) containing the value passed in.

Syntax

TempNum(double d);

d (double)

The number to place in the numeric OPER.

Example

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

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempNumExample(void)
{
    XLOPER xRes;

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