Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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;
}