Using Win32 functions in Visual FoxPro Image Gallery
National Language Support
..msdn
CompareString
GetACP
GetCurrencyFormat
GetDateFormat
GetLocaleInfo
GetNumberFormat
GetOEMCP
GetStringTypeEx
GetSystemDefaultLangID
GetSystemDefaultLCID
GetSystemDefaultLocaleName
GetThreadLocale
GetUserDefaultLangID
GetUserDefaultLCID
GetUserDefaultLocaleName
GetUserGeoID
LCIDToLocaleName
LocaleNameToLCID
NormalizeString
SetUserGeoID
Code examples:
Analyzing character types in a specified string
GetStringTypeEx
..msdn    Add comment     W32 Constants      Translate this page
Retrieves character type information for the characters in the specified source string. For each character in the string, the function sets one or more bits in the corresponding 16-bit element of the output array. Each bit identifies a given character type, for example, letter, digit, or neither.
Code examples:
Analyzing character types in a specified string
Declaration:
BOOL GetStringTypeEx(
  _In_   LCID Locale,
  _In_   DWORD dwInfoType,
  _In_   LPCTSTR lpSrcStr,
  _In_   int cchSrc,
  _Out_  LPWORD lpCharType
);
FoxPro declaration:
DECLARE INTEGER GetStringTypeEx IN kernel32;
    INTEGER Locale,;
    INTEGER dwInfoType,;
    STRING lpSrcStr,;
    INTEGER cchSrc,;
    STRING @lpCharType
Parameters:
Locale [in]
Locale identifier that specifies the locale.

dwInfoType [in]
Flags specifying the character type information to retrieve.

lpSrcStr [in]
Pointer to the string for which to retrieve the character types. The string is assumed to be null-terminated if cchSrc is set to any negative value.

cchSrc [in]
Size, in characters, of the string indicated by lpSrcStr. The size refers to bytes for the ANSI version of the function or wide characters for the Unicode version.

lpCharType [out]
Pointer to an array of 16-bit values. The length of this array must be large enough to receive one 16-bit value for each character in the source string.
Return value:
Returns a nonzero value if successful, or 0 otherwise.
Usage:
LOCAL cCharTypes, nIndex
cCharTypes = REPLICATE(CHR(0), LEN(m.cSource) * 2) + 2

= GetStringTypeEx(;
    LOCALE_SYSTEM_DEFAULT,;
    CT_CTYPE1,;
    m.cSource,;
    LEN(m.cSource),;
    @cCharTypes;
    )

Word Index links for the GetStringTypeEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2014-12-31 09:14:43
Modified: 2014-12-31 09:21:34
Visited in last 7 days: 68
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.224.197.86)
14 sec.Function: 'HeapSize'
28 sec.Function: 'CeSeekDatabase'
42 sec.Function: 'ImpersonateLoggedOnUser'
55 sec.Function: 'FileTimeToSystemTime'
1.15 min.Function: 'GetProductInfo'
1.37 min.Function: 'SQLGetInfo'
1.62 min.Function: 'GdipGetPropertyIdList'
1.83 min.Function: 'TerminateJobObject'
2.07 min.
Function group: 'Path'
2.3 min.
Function group: 'Window Procedure'
Google
Advertise here!