>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