Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving Regional Settings
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00923821
Message ID:
00923839
Views:
21
This message has been marked as the solution to the initial question of the thread.
>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.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform