Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetLocaleInfo
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00139420
Message ID:
00139934
Views:
26
Hi Michel,

I got it to work using the following VFP code:
DECLARE INTEGER GetSystemDefaultLCID IN Win32API
DECLARE INTEGER GetLocaleInfo IN Win32API;
  INTEGER Locale, INTEGER LCType,;
  STRING @lpLCData, INTEGER cchData
LOCALE_SDATE = 29
lnLCID = GetSystemDefaultLCID()
lcbuffer = SPACE(260)
lnbuflen = LEN(lcbuffer)
lnresult = GetLocalInfo(lnLCID, LOCALE_SDATE, @lcbuffer, lnbuflen)
It returned 2 as the length and the first character was a slash. I also tried it with LOCALE_STIME, and it properly returned a colon. Obviously, it works in VFP, but why it won't in VB...I have no idea. I hope that by looking at the above that you see something in the VB code that I missed.
George

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

Click here to load this message in the networking platform