Using Win32 functions in Visual FoxPro Image Gallery
String
..msdn
CharLower
CharToOem
CharUpper
OemToChar
StrCmpC
StrFormatByteSize
StrFromTimeInterval
StrToInt
StrToIntEx
StrTrim
Code examples:
Converting a hexadecimal string to an integer
OS version and revision
StrToIntEx
..msdn    Add comment     W32 Constants      Translate this page
Converts a decimal or hexadecimal string to an integer.
Code examples:
OS version and revision
Converting a hexadecimal string to an integer
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-15 12:00:00
Modified: 2012-09-25 12:39:22
Visited in last 7 days: 24
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.137.168)
2 sec.Function: 'JetCreateInstance'
5 sec.Function: 'FileIconInit'
8 sec.Function: 'GdipCreatePathGradientI'
10 sec.Function: 'GetNetworkParams'
12 sec.Function: 'waveOutGetPosition'
14 sec.Function: 'GetShortPathName'
16 sec.Function: 'CeMoveFile'
17 sec.Function: 'FindFirstVolume'
19 sec.Function: 'JetCreateDatabase'
22 sec.Function: 'LookupPrivilegeDisplayName'
Google
Advertise here!