 |
StrToIntEx ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Converts a decimal or hexadecimal string to an integer. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL StrToIntEx(
LPCTSTR pszString,
DWORD dwFlags,
int FAR * piRet
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE SHORT StrToIntEx IN Shlwapi;
STRING pszString,;
INTEGER dwFlags,;
INTEGER @ pllRet
|
 |
 |
 |
| Parameters: |
 |
pszString
Address of a null-terminated string to be converted.
dwFlags
Specifies if pszString contains a decimal or hexadecimal value.
piRet
Address of an integer variable that receives the converted string. |
 |
 |
| Return value: |
 |
| Returns TRUE if the string is converted, or FALSE otherwise. |
 |
 |
| My comment: |
 |
When using STIF_SUPPORT_HEX for a hexadecimal value, the string must be prefixed with "0x", as in hexadecimal values in C++. E.g. 0x800
See also: StrToInt, StrToInt64Ex |
 |
 |
| Word Index links for the StrToIntEx : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-15 12:00:00 | | Modified: | 2012-09-25 12:39:22 | Visited in last 7 days: 30 |