Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving Regional Settings
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00923821
Message ID:
00923855
Vues:
20
Thank you George. The code snippet works. One question, I tested the code using both Win32API and Kernel32 dlls, and the result is the same. Should I assume that they are using the same Windows API function?

>>Hi all,
>>
>>I need help in converting this VB example to VFP. I am trying to check the current Locale before setting the SEPARATOR to the desired regional format. Example: In France, the SEPARATOR is a blank space. Or is there a VFP function available?
>>
>>HOWTO: Retrieve the Regional Settings Currency Symbol
>>http://support.microsoft.com/default.aspx?scid=kb;en-us;199244
>>
>>Thanks.
>
>Try this. Untested, though
DECLARE INTEGER GetSystemDefaultLCID IN Win32API
>DECLARE INTEGER GetLocaleInfo IN Win32API;
>  INTEGER Locale,	INTEGER LCType,;
>  STRING @lpLCData,	INTEGER cchData
>#DEFINE LOCALE_SCURRENCY = 0x14
>dwLCID = GetSystemDefaultLCID()
>buf = SPACE(260)
>buflen = LEN(buf)
>lnresult = GetLocaleInfo(dwLCID, LOCALE_SCURRENCY, @buf, buflen)
I think you can make it out from this.
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform