Looking for Format String to switch from Comma to Dot

Martin_Förster
Member Posts: 55
Hey Guys,
i get a Decimal Value as Text, for the European Format it Looks great, but there is an US Company in the same DB, and i want only to Change the Values (from 1.000,10 to 1,000.10)
I try to use the Format Funktion, but it didn't work :-(
i get a Decimal Value as Text, for the European Format it Looks great, but there is an US Company in the same DB, and i want only to Change the Values (from 1.000,10 to 1,000.10)
I try to use the Format Funktion, but it didn't work :-(
0
Answers
-
Hi @Martin_Förster
You can have a look at DELCHR function:
https://docs.microsoft.com/en-us/dynamics-nav/delchr-function--code--text-
First convert the "," to a different char, then you change "." to a "," and convert your "," to "."
If you got the company in the same DB remember to check which format to convert to
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0 -
You can use FORMAT with a customized format string, or, better, set the correct language before you use format. Unfortunately this is only available in a non-intrusive way in reports. Everywhere else you needed to change the global language.
With FORMAT you can use (in any language)MESSAGE('%1',FORMAT(355/113* 10000,0,'<Sign><Integer Thousand><1000Character,,><Decimals><Comma,.>'));
which results inMicrosoft Dynamics NAV --------------------------- 31,415.929203539823 --------------------------- OK ---------------------------
1 -
... and in case you need to control the number of decimal places, prepend '<Precision,2:2>' to the entire format string, making it
'<Precision,2:2><Sign><Integer Thousand><1000Character,,><Decimals><Comma,.>'
1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions