- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The Help-file for the Reports tell me something like "to format numbers in text-controls use any definition from VB .NET-Format". Sounds great, but I failed ..
Searching the web I found a lot of code examples and also these sites:
https://www.thevbprogrammer.com/VB2010_04/04-01-FormattingNumbersDateStrings.htm
https://thedeveloperblog.com/string-format-vbnet
https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
What do I have?
different numbers, from "0.5" to "12345.6789"
What do I want?
Display them with 4 digits and a separator for thousands, so
0.5 -> 0.5000
12345.6789 -> 12'345.6789
I tried:
- the standard definition with "0.0000" which creates
0.5 -> 0.5000
12345.6789 -> 12345.6789
- this "##'##0.0000" which creates
12345.6789 -> 12346##0.0000
- and finally ("N", en-US) with the result
12345.6789 -> (N en-US)
With "#,0.0000" I get
12345.6789 -> 12,345.6789
This looks fine at first moment, but due to my locale I need 12'345.6789
So what's the right way to format the numbers?
Thanks in advance!
Solved! Go to Solution.