Formatting integers using regional settings 
Author Message
 Formatting integers using regional settings

I have to format number without decimal places but using the regional
settings so that I get the correct thousands separator.
In German, 123456 should be displayed as 123.456
In English, 123455 should be displayed as 123,456

If I use the 'System Default Number format', the decimal places are always
included. Eg. In german, 123.456,00
On the other hand, if I select customize and set Decimals to 0, then I dont
get the fractional part but the proper thousands separator is not used.

Is there a way I can get the proper thousands separator without displaying
the decimal digits ?

Thanks in advance,
Arun



Sat, 28 May 2005 04:09:00 GMT  
 Formatting integers using regional settings
<< Subject: Formatting integers using regional settings

Date: Mon, Dec 9, 2002 2:09 PM

I have to format number without decimal places but using the regional
settings so that I get the correct thousands separator.
In German, 123456 should be displayed as 123.456
In English, 123455 should be displayed as 123,456

If I use the 'System Default Number format', the decimal places are always
included. Eg. In german, 123.456,00
On the other hand, if I select customize and set Decimals to 0, then I dont
get the fractional part but the proper thousands separator is not used.

Is there a way I can get the proper thousands separator without displaying
the decimal digits ?

Thanks in advance,
Arun >>

Okay, here's my quick and dirty way to set up preferences.
1.  create a file with one record that has your constant info (Language,
Customer Address, etc)
2. Put a subreport in the report header that reads that file and makes the
information available as a shared variable
3. use that shared variable in a formula to do formatting.



Sat, 28 May 2005 10:39:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Date format and regional settings

2. Number format and regional settings

3. Regional Settings problem with Val(), Format$(), etc...

4. Date format vbLongDate ignores server's regional settings

5. VBScript Date format- regional settings ?

6. reliable date formatting unrelated to regional settings

7. How Can I Change the Short Date Format At Regional Settings in Control Panel

8. How to get the Regional Setting of ShortDate format

9. Get Regional Settings using Access 2.0

10. Accessing Regional Settings and using in SQL Queries

11. Merge replicatinon using other regional setting than English with SQLCE

12. Setting the Regional Date and Time Settings.

 

 
Powered by phpBB® Forum Software