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:
LCIDToLocaleName
..msdn    Add comment     W32 Constants      Translate this page
Converts a locale identifier to a locale name.
Code examples:
Declaration:
int LCIDToLocaleName(
  _In_       LCID Locale,
  _Out_opt_  LPWSTR lpName,
  _In_       int cchName,
  _In_       DWORD dwFlags
);
FoxPro declaration:
DECLARE INTEGER LCIDToLocaleName IN kernel32;
    INTEGER nLocale,;
    STRING @lpName,;
    INTEGER cchName,;
    INTEGER dwFlags
Parameters:
Locale [in]
Locale identifier to translate.

lpName [out, optional]
Pointer to a buffer in which this function retrieves the locale name, or one of predefined values.

cchName [in]
Size, in characters, of the locale name buffer.

dwFlags [in]
Before Windows 7: Reserved; should always be 0.
Return value:
Returns the count of characters, including the terminating null character, in the locale name if successful.
Usage:
nLCID = GetUserDefaultLCID()

* get required buffer size
nLength = LCIDToLocaleName(nLCID, NULL, 0, 0)

* allocate a buffer
cLocalName = REPLICATE(CHR(0), m.nLength * 2)

= LCIDToLocaleName(nLCID, @cLocalName, nLength, 0)

? STRCONV(cLocalName, 6) && Unicode

My comment:
See also: LocaleNameToLCID, GetUserDefaultLCID
Word Index links for the LCIDToLocaleName :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2015-01-20 18:45:26
Modified: 2015-01-20 18:48:41
Visited in last 7 days: 23
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
16 sec.Function: 'DrawAnimatedRects'
32 sec.Example: 'Retrieving information specific to the current Time Zone'
50 sec.Example: 'How to block the ALT+TAB shortcut (WinXP)'
1.17 min.Example: 'GDI+: Scrolling through large image using the mouse'
1.45 min.Example: 'Using Shell for performing operations on files'
1.78 min.Function: 'CallWindowProc'
2.05 min.Function: 'GdipSetClipRectI'
2.35 min.Function: 'NetScheduleJobEnum'
2.63 min.Function: 'GetNetworkParams'
2.93 min.Function: 'waveOutGetPosition'
Google
Advertise here!