Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to change values in string from 0,00 to 0.00
    primarykey
    data
    text
    <p>How can I change values in string from 0,00 to 0.00? - only numeric values, not all chars "," to "."</p> <p>FROM</p> <pre><code>string myInputString = "&lt;?xml version=\"1.0\"?&gt;\n&lt;List xmlns:Table=\"urn:www.navision.com/Formats/Table\"&gt;&lt;Row&gt;&lt;HostelMST&gt;12,0000&lt;/HostelMST&gt;&lt;PublicMST&gt;0,0000&lt;/PublicMST&gt;&lt;TaxiMST&gt;0,0000&lt;/TaxiMST&gt;&lt;ParkMST&gt;0,0000&lt;/ParkMST&gt;&lt;RoadMST&gt;0,0000&lt;/RoadMST&gt;&lt;FoodMST&gt;0,0000&lt;/FoodMST&gt;&lt;ErrorCode&gt;0&lt;/ErrorCode&gt;&lt;ErrorDescription&gt;&lt;/ErrorDescription&gt;&lt;/Row&gt;&lt;/List&gt;\n"; </code></pre> <p>TO</p> <pre><code>string myInputString = "&lt;?xml version=\"1.0\"?&gt;\n&lt;List xmlns:Table=\"urn:www.navision.com/Formats/Table\"&gt;&lt;Row&gt;&lt;HostelMST&gt;12.0000&lt;/HostelMST&gt;&lt;PublicMST&gt;0.0000&lt;/PublicMST&gt;&lt;TaxiMST&gt;0.0000&lt;/TaxiMST&gt;&lt;ParkMST&gt;0.0000&lt;/ParkMST&gt;&lt;RoadMST&gt;0.0000&lt;/RoadMST&gt;&lt;FoodMST&gt;0.0000&lt;/FoodMST&gt;&lt;ErrorCode&gt;0&lt;/ErrorCode&gt;&lt;ErrorDescription&gt;&lt;/ErrorDescription&gt;&lt;/Row&gt;&lt;/List&gt;\n"; </code></pre> <hr> <p>Thanks for answers, but I mean to change only numeric values, not all chars "," to "." I don't want change string from</p> <pre><code>string = "&lt;Attrib&gt;txt txt, txt&lt;/Attrib&gt;&lt;Attrib1&gt;12,1223&lt;/Attrib1&gt;"; </code></pre> <p>to</p> <pre><code>string = "&lt;Attrib&gt;txt txt. txt&lt;/Attrib&gt;&lt;Attrib1&gt;12.1223&lt;/Attrib1&gt;"; </code></pre> <p>but this one is ok</p> <pre><code>string = "&lt;Attrib&gt;txt txt, txt&lt;/Attrib&gt;&lt;Attrib1&gt;12.1223&lt;/Attrib1&gt;"; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload