Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regional Digit Grouping (Separator) settings
Message
From
13/07/2004 14:31:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/07/2004 12:23:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00923781
Message ID:
00923899
Views:
18
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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform