Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetLocaleInfo
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00139420
Message ID:
00139934
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform