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:
GetSystemDefaultLocaleName
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the system default locale name.
Code examples:
Declaration:
int GetSystemDefaultLocaleName(
  _Out_  LPWSTR lpLocaleName,
  _In_   int cchLocaleName
);

FoxPro declaration:
DECLARE INTEGER GetSystemDefaultLocaleName;
IN kernel32;
    STRING @lpLocaleName,;
    INTEGER cchLocaleName

Parameters:
lpLocaleName [out]
Pointer to a buffer in which this function retrieves the locale name.

cchLocaleName [in]
Size, in characters, of the output buffer indicated by lpLocaleName.
Return value:
Returns a value greater than 0 that indicates the length of the locale name, including the terminating null character, if successful.
Usage:
cBuffer = REPLICATE(CHR(0), 256)

nLength = GetSystemDefaultLocaleName(;
            @cBuffer, LEN(cBuffer))

* the buffer contains Unicode string
? STRCONV(;
    SUBSTR(m.cBuffer, 1, m.nLength * 2),;
    6)
My comment:
See also: GetUserDefaultLocaleName, GetSystemDefaultLCID
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2015-01-20 18:08:11
Modified: 2015-01-20 18:11:53
Visited in last 7 days: 3
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.167.202.184)
2 sec.Function: 'GdiSetBatchLimit'
4 sec.Function: 'CharUpper'
6 sec.Function: 'GetSystemTime'
7 sec.Function: 'SetLayeredWindowAttributes'
9 sec.Function: 'AppendMenu'
10 sec.Function: 'GdipGetFontCollectionFamilyList'
12 sec.Function: 'SetGraphicsMode'
14 sec.Function: 'AddClipboardFormatListener'
17 sec.Function: 'CeRapiInvoke'
19 sec.Function: 'ZeroMemory'
Google
Advertise here!