Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regional Digit Grouping (Separator) settings
Message
De
13/07/2004 14:40:45
 
 
À
13/07/2004 14:31:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00923781
Message ID:
00923907
Vues:
20
Thanks for the feedback.

Yes, that is what I'm doing. However, another problem presents itself as to when should the settings be changed. I am looking to solve this automatically be checking for the current locale and setting them appropriately.

In my other thread, I am trying to use a Windows API to get the current Locale/Region and although I've a few API functions available, I still can't make heads or tails out of it. Specifically, the following functions:

DECLARE INTEGER GetSystemDefaultLCID IN Win32API
DECLARE INTEGER GetSystemDefaultLangID IN Win32API
DECLARE INTEGER GetUserDefaultLCID IN Win32API
DECLARE INTEGER GetUserDefaultLangID IN Win32API

All functions returned the same value when switching between regional settings: EN(US) and FR(FR).

>I think you should just do things the old-fashioned way: SET SYSFORMATS OFF - I think this is the default, and then set individual settings, especially SET POINT and SET SEPARATOR.
>
>To get the settings from the Control Panel, you can simply SET SYSFORMATS ON and then back OFF. Relevant settings will be copied from the Control Panel.
>
>>Thank you Hilmar. I will manipulate the SEPARATOR settings within the scope of the program only. However, I will need to know the current Locale/Regional Setting before I set the SEPARATOR to the appropriate setting. I have posted another thread for this question.
>>
>>>>Hi all,
>>>>In VFP8 Help the SET SEPARATOR has the following note:
>>>>Included for backward compatibility. Use the Digit grouping symbol setting of the Windows Regional Options Control Panel instead.
>>>>
>>>>While this solves our problem with a French Regional Setting where the SEPARATOR is a blank space, I am having second thoughts about this fix because of the backward compatibility issue. I've been looking for a Windows API that will allow me to change the Digit grouping symbol but can't find one. Does anyone have similar problems and what was your solution.
>>>>
>>>>Feedbacks very much appreciated. Thanks.
>>>
>>>Backwards compatibility simply means that your older programs might not work correctly if you use SET SYSFORMATS. You will have to gradually change the program to work correctly, with SET SYSFORMATS ON.
>>>
>>>I would not recommend to change the settings in the Control Panel programmatically; this would go against the principle, that this should be under the control of the user. If you do need special settings, just keep SET SYSFORMATS OFF, and use the "backwards compatible" commands.
ramil
~~ learning to stand still
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform