Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get measurement system
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00807522
Message ID:
00808054
Vues:
20
>Hi George.
>
>>>I'm trying to figure out how to determine what measurement system (U.S. or metric) the user has selected in the Regional Settings applet of the Control Panel. I've been through the API Functions forum here and MSDN, but can't seem to find what I need. Anyone have an idea? TIA.
>>>
>>Doug,
>>
>>It's in the registry under HKEY_CURRENT_USER\Control Panel\International\iMeasure. If the value is 1, it's U.S. 0 is metric.
>
>I knew you'd have the answer. Once again, you have saved my butt! Thanks, George.
>
Doug,

Alexander's solution is better than mine. Go with that. For the life of me, I knew that there was a function to do this directly, but I couldn't remember (or find) it.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform